What would an intent URI look like for numeric data?

by Edward Falk » Fri, 06 Mar 2009 07:18:08 GMT


Sponsored Links
 Suppose I want to include data right in an intent, e.g. pass a number
or string in the intent data field.  What should the uri look like?
Something like "data:3.14159"?  Or just don't include the scheme at
all, "3.14159"?

In fact, is there a list of standard schemes anywhere?

  -ed falk
--~--~---------~--~----~------------~-------~--~----~



What would an intent URI look like for numeric data?

by Edward Falk » Sat, 07 Mar 2009 05:15:21 GMT


 Doesn't particularly need to be in the data field, I just thought that
it was an obvious place put put, you know, data.

I've actually seen examples of apps that put the result in the Action
field.  (C.f. app/SendResult.java in the sdk)
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. on testing a webserver on the android emu

Hi All,

today I've made a little test with a small webserver that I've found
on the web at
http://www.jibble.org/miniwebserver/ .

with:
./adb forward tcp:1777 tcp:1777 to call http://localhost:1777/ in the
remote browser

and a little test program running the following code:
..
import org.jibble.simplewebserver.*;
..
try {

  // SimpleWebServer server = new SimpleWebServer(new File("/data/data/
mypackage"), 1777);
  // call the browser for http://localhost:1777/data/data/mypackage

     SimpleWebServer server = new SimpleWebServer(new File("/"),
1777);
}
catch (IOException e) {
     Toast.makeText( myprog.this, e.toString(),
Toast.LENGTH_SHORT).show();
}

I can download Ringtones (http://localhost:1777/system/media/audio/
ringtones)
or Applications if I knew the name (http://localhost:1777/data/app/
e.g. ApiDemos.apk).

So if a user bought an app another one could download it, if he knews
the name or
guessed its name ?

Bye

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

2. Why cant apps be downloaded to an external SD card??

I have a G1 on its way and I just read that you cannot download/store
apps on the external storage slot.  WTF was Google thinking??  The
built-in memory is a joke in todays tech, having a external slot makes
sense but why cant you store the most important thing about Android on
it??  Please tell me they are planning on fixing this, otherwise I
think I will send this G1 back...
--~--~---------~--~----~------------~-------~--~----~

3. Why cant apps be downloaded to an external SD card??

4. Europeans after the G1

5. Using PAD files for Android application releases

6. R.java file not being generated by eclipse plugin

7. How many threads are created by android vm for each android application