Passing binary data (Parcelables) from one phone to another sounds somewhat risky, as one has to consider binary compatibility.

Take a look at Intent.toUri:

http://developer.android.com/reference/android/content/Intent.html#toUri(int)

It doesn't support each and every type and combination of extras, but is designed to avoid binary compatibility issues.

-- Kostya

16.10.2010 14:17, Doug пишет:
On Oct 15, 11:03 pm, MG<[email protected]>  wrote:
Hi. Thank you for your reply.
How would I do this?
Can you help me. Is there any sample program on the internet
that I could use as a reference?
Sorry, you will probably have to be inventive on your own.

There are two requirements you have to keep in mind:

1. The devices must be linked somehow via your application.  For
example, bluetooth, SMS, wifi local network via socket, or both
connected to some network service that will proxy the data between
them.

2. An intent is not "just" a set of name/value pairs as someone
suggested.  If you want any and every intent to be possible to send,
you'll have to look into the Parcelable interface and make sure you
parcel and unparcel the intent on both sides UNLESS you can easily
flatten your intent as a string.

Doug



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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