What would an intent URI look like for numeric data?

by Marco Nelissen » Fri, 06 Mar 2009 07:38:03 GMT


Sponsored Links
 Does it need to be in the data field? Normally you'd use
Intent.putExtra() for this.






--~--~---------~--~----~------------~-------~--~----~



What would an intent URI look like for numeric data?

by Dianne Hackborn » Sat, 07 Mar 2009 05:28:02 GMT


 There was a big reworking late in 1.0 of the result stuff that caused a lot
of things that used to be returning things as raw strings to put them in the
action field.  It is generally not something I would recommend.  And what
you do with results is very very different than what you do with activity
intents and such, because an activity intent is something you are publishing
to the system, which it does intent filter matching on, etc.

I would recommend putting things like integers in to the extra data.  I
would certainly not recommend using the data field if you don't actually
have a reasonable scheme prefix that is part of your data.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

Great thinking here.

I have a highly rated app that simply... could... not... be...
written... without AbsoluteLayout, no matter whose Java sensibilities
it steps on. I guess Android's doing so well with apps that it can
afford to shut down an entire category of games.

Oh well. Glad I got it in early, looks like I won't be having any
competition on that one.





--~--~---------~--~----~------------~-------~--~----~

2. Regarding AbsoluteView being deprecated in 1.5

Hi,

I have just realised that AbsoluteLayout has been deprecated in the
latest sdk, however I have designed my apps based on AbsoluteLayout
and it is very difficult for me to remove them and change it to a
different layout. Can someone help me as to how I should proceed?
Absolute layout was really helpful in positioning the elements to be
accurate. One could always had different layout definitions for
different screen sizes, and based on the current width and height the
required layout can be set. Removing of AbsoluteLayout  is creating a
lot of frustration to me as I have already designed most of the things
using it. Somebody please help me out.

Regards,
R.Karthik
--~--~---------~--~----~------------~-------~--~----~

3. Making a snapshot of an application with trasparencies

4. AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

5. Push Mail answers

6. Location of Gears Local DB

7. Retrieving Draft SMS details