Office Hours — Today, July 14

Tuesday, July 12

Jul 14
9:55 AM
Mark M.
has entered the room
Mark M.
turned on guest access
10:20 AM
Mike
has entered the room
Mark M.
howdy, Mike!
Mike
Hi Mark!
Mark M.
how can I help you today?
Mike
I do have a short question with regard to a "custom style" of a tab activity.
I was asking myself "what would be the best way" to create tabs looking something like those in the official twitter app?!
10:25 AM
Mike
AFAIK Google stated at the IO that they want to make source public, but I think they haven't yet, right?!
Mark M.
yeah, and at this point, I expect that'll never happen
I'm not convinced those are actually tabs
Mike
Do u think it's a ViewFlipper? Or whatelse?
Mark M.
ImageView or ImageButton using StateListDrawables, perhaps
and then a ViewFlipper or something beneath
bear in mind that I don't have the app, I'm working off of Market screenshots
Mike
I am asking this myself because this kind of "navigation" becomes quite (let's say) "common".
Many other apps follow these "style" (facebook app, etc.) and I want too.
Mark M.
bear in mind that Honeycomb uses a different mechanism for tabs (in the action bar)
and I expect that Ice Cream Sandwich will be more in that direction as well
so, be careful about investing too much time in a style that will be considered "old" in a year
Mike
Yeah, that's the next thing. So do you think it's possible to create anything working on Honeycomb/Ice Cream Sandwich as well?
Mark M.
on Honeycomb, I'd use tabs or navigation in the action bar
we'll see what the recommendations are for ICS, particularly on phone-sized screens, when it comes out
Mike
Better to use the "standard tab activity" at the moment?!
10:30 AM
Mark M.
well, whether it is TabActivity or TabHost in a regular activity or something else akin to Twitter is up to you
perhaps ActionBarSherlock will support some sort of tab metaphor after ICS ships and we see how ICS handles tabs
Mike
OK - Thanks!
I think that's all I wanted to ask you...
Mark M.
OK
Mike
...just some hints how you would have done it.
Bye!
Mark M.
see ya!
Mike
has left the room
10:45 AM
fitz
has entered the room
fitz
morning
Mark M.
howdy, fitz!
fitz
quit questions on C2DM
Mark M.
how can I help you today?
fitz
do you know if it will work for google tv as well?
Mark M.
AFAIK, it should
but I do not have confirmation
rephrase
it should, once the Market is on GTV and we can write apps for it
the client-side piece of C2DM is part of the Market infrastructure, IIRC
that's why there were some issues on getting C2DM to work in the emulator
fitz
message can be 1024 characters long - can you have links to lets say to pull up a web site?
Mark M.
since that text is not directly displayed to the user, you can have in there whatever you want
XML
JSON
base64-encoded binary payload
recipe for egg nog
fitz
really - so maybe I missed that part the 1024 does not display - so it will give instructions to your app to fire off?
Mark M.
it triggers a BroadcastReceiver of yours
you get the data in an extra IIRC
your C2DMBaseReceiver subclass will be called with onMessage()
10:50 AM
Mark M.
intent.getStringExtra("payload") is your 1024 bytes o' stuff
fitz
ok - will read up more on it thanks. When it says you have a C2DM server that sends out this info - is the server something that we are use to - a box or something that Google provides?
Mark M.
there are three pieces to the C2DM puzzle:
1. the device
2. Google's server farm
3. something of yours that is not on a device and is frequently assumed to be a Web server
#3 makes Web service requests of #2 to send data to #1
that being said, #3 could be a desktop app, or conceivably a mobile app (e.g., some other person), AFAIK
in my C2DM chapter, I just use a curl script as #3
fitz
ok - and it is still beta right? and you write that it is maybe not so reliable - I do not need my app to be mission critical so looking to see if this is worth looking into more
Mark M.
yes, it is still beta
I don't know that it has reliability problems per se, but it is a beta product, and it is from Google, so it is what it is
fitz
ok great thanks for info - so much to read up on :)
Mark M.
happy to help
fitz
have a great day
Mark M.
you too!
fitz
has left the room
11:00 AM
Mark M.
turned off guest access

Tuesday, July 12

 

Office Hours

People in this transcript

  • fitz
  • Mark Murphy
  • Mike