Jul 14 | 9:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Jul 14 | 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.
|
Mike |
I was asking myself "what would be the best way" to create tabs looking something like those in the official twitter app?!
|
Jul 14 | 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
|
Mark M. |
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
|
Mark M. |
and then a ViewFlipper or something beneath
|
Mark M. |
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".
|
Mike |
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)
|
Mark M. |
and I expect that Ice Cream Sandwich will be more in that direction as well
|
Mark M. |
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
|
Mark M. |
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?!
|
Jul 14 | 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
|
Mark M. |
perhaps ActionBarSherlock will support some sort of tab metaphor after ICS ships and we see how ICS handles tabs
|
Mike |
OK - Thanks!
|
Mike |
I think that's all I wanted to ask you...
|
Mark M. |
OK
|
Mike |
...just some hints how you would have done it.
|
Mike |
Bye!
|
Mark M. |
see ya!
|
Mike | has left the room |
Jul 14 | 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
|
Mark M. |
but I do not have confirmation
|
Mark M. |
rephrase
|
Mark M. |
it should, once the Market is on GTV and we can write apps for it
|
Mark M. |
the client-side piece of C2DM is part of the Market infrastructure, IIRC
|
Mark M. |
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
|
Mark M. |
XML
|
Mark M. |
JSON
|
Mark M. |
base64-encoded binary payload
|
Mark M. |
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
|
Mark M. |
you get the data in an extra IIRC
|
Mark M. | |
Mark M. |
your C2DMBaseReceiver subclass will be called with onMessage()
|
Jul 14 | 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:
|
Mark M. |
1. the device
|
Mark M. |
2. Google's server farm
|
Mark M. |
3. something of yours that is not on a device and is frequently assumed to be a Web server
|
Mark M. |
#3 makes Web service requests of #2 to send data to #1
|
Mark M. |
that being said, #3 could be a desktop app, or conceivably a mobile app (e.g., some other person), AFAIK
|
Mark M. |
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
|
Mark M. |
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 |
Jul 14 | 11:00 AM |
Mark M. | turned off guest access |