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. Every Android phone capable of java pointer actions?

Hallo,

my question might sound crazy.
As the developers swear that Android is an absolutely open platform,
does it mean every java application is capable of pointer actions?
Even if the phone is not a touchscreen phone.
(Sorry if I repeat myself, not sure if my other message got lost or
not)

Thank you
Katya

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

2. Are these features possible on Android?

Hello everyone,

I am a programmer with experience in mobile development, especially
with BREW, but I am new
to Android. Can you help me understand if several features that I want
for my projects are possible with Android?

Here is my list:

1. Programmatically add bookmarks to web browsers.
2. Adding contact list management to email clients.
3. Receive all SMS and delete from inbox the application-directed
ones, even when the application is in background or there is a phone
call going on, etc. (without bugging the user).
4. Running a downloaded application installer (previously downloaded
via TCP/IP).
5. Adding or editing encryption to the data transfer, possibly using
SSL certificates.
6. Backup and restore user's SMS/MMS.
7. Lock the phone with a password.
8. Get ESN, Phone Nr, etc information.
9. Launch any another application, like a web browser.
10. Is there a dialup/VPN facility on Android like on some
smartphones? Are the settings changeable programmatically?
11. Access to user's documents that were not created by the accessing
application.
12. Capturing the display and generating fake button presses/styllus
clicks (as in computer controlled learning).
13. DNS lookups editing (programmatical entry of URL-IP links).
14. Managing username/passwords for other applications (like autofil
with username/password).

Thank you.

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

3. SDK on Nov 4 minus 2 months or September 4

4. Partnering inquiry

5. How do we use Android application as web based site.

6. looking for "api design ideas" and feedback on networking library

7. a developer contest on Java Based Mobile Devices