Dec 9 | 8:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Sanskar G. | has entered the room |
Mark M. |
hello, Sanskar!
|
Mark M. |
how can I help you today?
|
Sanskar G. |
View paste
(119 more lines)
|
Mark M. |
Adobe dropped Flash for Android about 3 years ago
|
Sanskar G. |
So what would you suggest now to do?
|
Mark M. |
not use Flash
|
Mark M. |
have your Web developers create a mobile edition of the Web site that does not use Flash
|
Mark M. |
for example, IIRC, iOS has never supported Flash
|
Dec 9 | 9:00 AM |
Mark M. |
so your Web site presumably already handles non-Flash mobile scenarios
|
Sanskar G. |
Ok So will Android support HTML5 video format?
|
Mark M. |
beats me
|
Sanskar G. |
Ok , Now another question ....Could you please let me know what is the best way to embed a large number of HTML files in android ,,,Is it better to convert HTML to textview or anything else?
|
Mark M. |
you cannot "convert HTML to textview", any more than you can "convert email to SeekBar"
|
Mark M. |
if you mean "show HTML in a TextView by means of Html.fromHtml()", you are welcome to try that
|
Mark M. |
however, Html.fromHtml() does not support much in the way of HTML tags
|
Sanskar G. |
Yeah I meant that only
|
Sanskar G. |
Okk
|
Mark M. |
basically, if your content is more complex than the body of a tweet, you will need WebView
|
Mark M. |
or a third-party Web browser app
|
Sanskar G. |
Ok
|
Sanskar G. |
Now a last question , Am I free to ask questions regarding "The Busy Coder's Guide to Android Development" Android Version of the book?
|
Mark M. |
I am not exactly certain what you mean, but sure
|
Dec 9 | 9:05 AM |
Sanskar G. |
I just want to ask some questions about your Empub reader app
|
Mark M. |
go ahead
|
Sanskar G. |
When a user clicks a link in your index , how he/she is directed to the corresponding HTML file in your app?
|
Mark M. |
the APK does not have an index
|
Mark M. |
do you mean the Table of Contents?
|
Mark M. |
or do you mean search results?
|
Sanskar G. |
Yeah right
|
Sanskar G. |
Table of contents
|
Mark M. |
each chapter in the book is a separate page of the ViewPager
|
Mark M. |
when the user clicks the link, I catch that in shouldOverrideUrlLoading() of the WebView showing the Table of Contents
|
Mark M. |
I parse the link, which gives me the chapter and an ID of a section within that chapter
|
Mark M. |
I switch to the right page of the ViewPager using setCurrentItem() (or whatever the method is on ViewPager for changing your position)
|
Sanskar G. |
Ok thanks for such an awesome explanation
|
Sanskar G. |
Am I eligible to get the source code of that book app?
|
Mark M. |
no, it's not open source
|
Mark M. |
mainly because it's a massive pile of... singularly unimpressive code
|
Sanskar G. |
Ok No problem
|
Sanskar G. |
I just wanted that to learn
|
Sanskar G. |
but no problem
|
Dec 9 | 9:10 AM |
Sanskar G. |
One more question , what about the HTML5 video format support for android?
|
Mark M. |
you asked that already
|
Mark M. |
and my answer was, "beats me"
|
Sanskar G. |
You mean that its not supported..Am I right?
|
Mark M. |
no, I mean that I have no idea what level of HTML5 video is supported or not
|
Mark M. |
and it will vary by Web browser, anyway
|
Sanskar G. |
Oh!
|
Sanskar G. |
Ok then thanks for your time Sir,,,Have a nice day!
|
Mark M. |
you too!
|
Sanskar G. | has left the room |
Micalet | has entered the room |
Mark M. |
hello, Micalet~!
|
Micalet |
Hello Mark
|
Mark M. |
(give or take a ~)
|
Mark M. |
how can I help you today?
|
Micalet |
the other day I was asking to you about the google calendar api v3
|
Mark M. |
yes, I remember bits of that
|
Micalet |
and you recommend me use the google api client library for java
|
Dec 9 | 9:15 AM |
Mark M. |
yes, since it exists and is probably easier than consuming the raw REST API
|
Micalet |
the problem is that the samples they give are for extract the events from the calendars in the device
|
Micalet |
and I want to list the events from a public google calendar
|
Micalet |
can you help me with the implementation?
|
Mark M. |
no, I cannot
|
Micalet |
:-(
|
Micalet |
can you give me a clue about how can I do it?
|
Mark M. |
I have never used Google's APIs for this sort of thing
|
Micalet |
ok, i understand
|
Mark M. | |
Mark M. |
I guarantee you that this library does not pertain to any Android device
|
Mark M. |
because the API library does not have to run on Android
|
Mark M. |
now, it may be that this API, and its samples, are focused on consuming the user's own calendars
|
Micalet |
well, ok, it's true, not the device calendars, but the user calendars
|
Mark M. |
so, you might try a Stack Overflow question, or wherever the official support point is for that library, asking how to use that API with a public calendar
|
Mark M. |
the Stack Overflow question you asked previously was not about this API
|
Micalet |
maybe the API can do what I need, but as you say, the samples are focused on user calendars
|
Dec 9 | 9:20 AM |
Mark M. |
your Stack Overflow question was also tagged 'android', which isn't relevant here
|
Micalet |
ok, thank you for your help
|
Mark M. |
see if there are better SO tags for the Google APIs
|
Micalet |
maybe is better close this questio and open a new one
|
Mark M. |
I doubt that you can close the existing one anymore, as it has an answer
|
Mark M. |
but I would definitely suggest asking a new one
|
Micalet |
I'll be searching questions in SO with google-api tag, but I didn't find anything good for me
|
Micalet |
ok, thank you Mark
|
Mark M. |
you might also try http://groups.google.com/group/google-api-java-... for your question
|
Mark M. |
per the instructions on https://code.google.com/p/google-api-java-clien...
|
Micalet |
Thank you again.
|
Mark M. |
you are very welcome
|
Dec 9 | 9:35 AM |
Conor | has entered the room |
Mark M. |
hello, Conor!
|
Mark M. |
Conor: Micalet has already asked a question, so it is your turn -- do you have a question?
|
Conor |
Hi Mark, Greetings from Ireland.
|
Mark M. |
Erin go bragh!
|
Conor |
Hi, yes. My question is related to pagination of list data from a web API and then searching that data (filter) locally.
|
Conor |
My issue is that of UX.
|
Conor |
When the user begins a search all the data may not be local. Maybe only the first page or two.
|
Conor |
I didn't build search/filter into my API so not possible right now.
|
Conor |
What are your thoughts please?
|
Mark M. |
here, your API refers to the Web site?
|
Micalet |
bye Mark, see you
|
Micalet | has left the room |
Conor |
API means HTTP REST API yes.
|
Mark M. |
then you'
|
Mark M. |
er
|
Mark M. |
then, you're probably going to need to start there
|
Dec 9 | 9:40 AM |
Mark M. |
unless your vision is that all the data will, at some point, be on the device, all searching has to be done on the site
|
Conor |
Ah ok, that's what I thought to be honest. Just a bit of a pain in the short term while time is tight. Thanks.
|
Mark M. |
you're welcome to try to do something in the UI to indicate that you're searching/filtering only the locally-cached subset, but that's likely to be confusing and aggravating
|
Conor |
Yes, for sure. That time would be better spent implementing search in the REST API imho.
|
Mark M. |
agreed
|
Conor |
Ok thanks anyway. I'm sure i'll be back with many more again. This is a great service, thank you.
|
Mark M. |
you are very welcome
|
Conor |
Have a good day. Goodbye.
|
Mark M. |
see you later!
|
Dec 9 | 10:00 AM |
Conor | has left the room |
Mark M. | turned off guest access |