I'm no expert, but from what I can tell, the putExtra() methods on
Intent accept primitive types, Serializable objects, and Parcelable
objects:

http://developer.android.com/reference/android/content/Intent.html

Primitive types and Serializable objects will be copied.  I think
Parcelable objects are copied as well.  You might be better off
researching the RPC capabilities of Android to pass around real object
references:

http://developer.android.com/guide/topics/fundamentals.html#rpc

++Steve

On Mar 6, 7:51 am, Łukasz Warchoł <[email protected]> wrote:
> Hi,
> could you tell me when I am passing an object throught Intent to an
> another Activity it is sended a copy of that object or an reference on
> it? And if it is an copy is there any way to pass an reference (to make
> two activietes work on the same object)?
> Thanks in advance.
> Luke
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to