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. is any one sucefully deployed gmaps application on target 2

As in SDK 1.5, did any one was successful in deploying the gmap based
application.Pl. give some hits on what to watch out for..

We tried to compile the application with gmaps libarary as class path
instead of bootpath and put the minsdk as 3 and remove the
<uses-library android:name="com.google.android.maps" /> from manifest.

The application compiles and installs fine on target 2 avd, however
on start of the application it says super class of the map app not
found which is MapActivity.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com



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

2. How to access the files on SD card through emulator?

Instructions here:

http://developer.android.com/guide/developing/tools/emulator.html#diskimages

j




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

3. WebView and Custom Protocol Handlers

4. How to do setprop for a property such that its value remains consistent across reboots?

5. Software Engineer, Google Android Internals - Dallas, TX

6. How to program a key press on a service

7. How will users upgrade their firmware?