Office Hours — Today, December 9

Yesterday, December 8

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!
how can I help you today?
Sanskar G.
View paste (119 more lines)
Hi Mark , 
Nowadays I'm working on developing an android app for Live TV website which consists of FLASH , I used webview to load the mobile version of the site which is at : http://tvexe.net/tv_cms/mobile/ 

Following is the code of my JAVA file : 

package com.dEvElOpIt.tvexetvmobile;

import android.app.Dialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
...
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
have your Web developers create a mobile edition of the Web site that does not use Flash
for example, IIRC, iOS has never supported Flash
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"
if you mean "show HTML in a TextView by means of Html.fromHtml()", you are welcome to try that
however, Html.fromHtml() does not support much in the way of HTML tags
Sanskar G.
Yeah I meant that only
Okk
Mark M.
basically, if your content is more complex than the body of a tweet, you will need WebView
or a third-party Web browser app
Sanskar G.
Ok
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
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
do you mean the Table of Contents?
or do you mean search results?
Sanskar G.
Yeah right
Table of contents
Mark M.
each chapter in the book is a separate page of the ViewPager
when the user clicks the link, I catch that in shouldOverrideUrlLoading() of the WebView showing the Table of Contents
I parse the link, which gives me the chapter and an ID of a section within that chapter
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
Am I eligible to get the source code of that book app?
Mark M.
no, it's not open source
mainly because it's a massive pile of... singularly unimpressive code
Sanskar G.
Ok No problem
I just wanted that to learn
but no problem
9:10 AM
Sanskar G.
One more question , what about the HTML5 video format support for android?
Mark M.
you asked that already
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
and it will vary by Web browser, anyway
Sanskar G.
Oh!
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 ~)
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
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
and I want to list the events from a public google calendar
can you help me with the implementation?
Mark M.
no, I cannot
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.
I guarantee you that this library does not pertain to any Android device
because the API library does not have to run on Android
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
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
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
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
ok, thank you Mark
Mark M.
you might also try http://groups.google.com/group/google-api-java-... for your question
Micalet
Thank you again.
Mark M.
you are very welcome
9:35 AM
Conor
has entered the room
Mark M.
hello, Conor!
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.
My issue is that of UX.
When the user begins a search all the data may not be local. Maybe only the first page or two.
I didn't build search/filter into my API so not possible right now.
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'
er
then, you're probably going to need to start there
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!
10:00 AM
Conor
has left the room
Mark M.
turned off guest access

Yesterday, December 8

 

Office Hours

People in this transcript

  • Conor
  • Mark Murphy
  • Micalet
  • Sanskar Gupta