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. Using Picture recording creates bad memory allocation

I use this approach for my main game loop because surface view is
jerky and drawing direct to image misses the double buffer effects, so
different parts of my image update at different times.

Picture.beginRecording works very smoothly, but DDMS indicates bad
memory allocation from the beginRecording method.

Canvas canvas = picture.beginRecording(320, 480);
canvas.draw....
picture.endRecording();

I tracked the issue down to this line in the Picture.beginRecording
method :
 59         mRecordingCanvas = new RecordingCanvas(this, ni);

Hence no surprise about the allocation. But does this mean that there
is no way to use the Picture object in a game loop without causing
memory leaks / slowdown?

Kind of makes the whole Picture class redundant if there's no way
around this ...


http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=graphics/java/android/graphics/Picture.java;h=bbb2dbfa6abdf48b63ddfacc07fa2a7914a06e83;hb=cupcake

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

2. Inserting Data into a Cursor?

Hello, I'm looking for a way to insert data into a cursor that is
separate from the SQL database it retrieves the rest of the
information from.
Is there any way to to this, or is there a different way to add more
information to a list view item?

What I'm trying to do is to use a date column for each entry in the
list to calculate the number of days until that date (and then put
that number in the list item).
I know how to get the value, but I just cant find a way to put it into
the list without it being in the cursor.

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

3. Mouse Events in Browser

4. browser plugin development?

5. Dueling Activities Over the Intent's Hand in Marriage

6. Problem with a AndroidManifest.xml for a service

7. Out of memory exceptions and difference between emulator and hardware (dev phone)