The "Active Objects" heading under
http://code.google.com/android/reference/android/os/Parcel.html seem
to indicate that activities can share in-memory Java objects as well.
Is my understanding correct?

Anyone has had any experience with this? Are there any restrictions we
should be aware of? Can any two activities share in-memory Java object
like this or do they have to be from the same publisher?

Thanks
Inder



On Tue, Jan 13, 2009 at 3:02 PM, Geoff Stromberg
<[email protected]> wrote:
> For any Java type that implements interface Serializable, you can use the
> Intent methods:
>
>     public Intent putExtra(String name, Serializable value)
>     public Serializable  getSerializableExtra(String name)
>
> There's also a bunch of more type-specific put/get methods on Intent.
>
>
> On Tue, Jan 13, 2009 at 2:19 PM, Dianne Hackborn <[email protected]>
> wrote:
>>
>> You can include everything defined in the Intent API.
>>
>> On Tue, Jan 13, 2009 at 1:58 PM, inder <[email protected]> wrote:
>>>
>>> Can an activity receive Java objects in an Intent? Or the Intents must
>>> deal with string or byte[] only?
>>>
>>> Thanks
>>> Inder
>>>
>>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> [email protected]
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support.  All such questions should be posted on public
>> forums, where I and others can see and answer them.
>>
>>
>>
>
>
> >
>

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