On Wed, Jan 12, 2011 at 5:58 PM, John Lussmyer <[email protected]> wrote:
> 3) Internal Storage - separate apps can't write to each others area, even if 
> they have the same userid.

AFAIK, they can. What proof do you have to the contrary? Not that this
is particularly a good strategy for SDK apps, mind you.

> So, in order to send 10 bytes of data to another app, it seems that I'll
> have to create a new Activity and have it respond to an Intent().

That is not the proper use of an Activity.

> Is that really the only way to do this?

-- Create a service, exposing an API through AIDL, consumed via bindService()

-- Create a service, exposing an API through an Intent (sent via
startService()) and returning results via a Messenger, or
createPendingResult()'s PendingIntent, etc.

-- Create a content provider

There may be other options depending on what the "10 bytes of data"
actually is, but those should get you started.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to