OK, I solved my own problem.

You can pass multiple objects using parcelable. As long as the key
names are different. In my parcelable code for the object I missed a
new variable I added in the creation of the parcelable. So when the
object is called to reconstruct itself it is going off an array that
is bigger than what I parcelabled out.

This was causing an error and making my code return a null when trying
to grab the object out of the bundle.

Thanks for the help!

On Oct 14, 3:25 pm, Kumar Bibek <[email protected]> wrote:
> Haven't tried this yet, never felt the need, but I am guessing that it
> should work
>
> On 15-Oct-2010 12:54 AM, "Kostya Vasilyev" <[email protected]> wrote:
>
>  14.10.2010 23:16, Derek Winstead пишет:
>
>
>
> > I have an application that I would like to have multiple objects
> > passed around the activities...
>
> You can attach as many Parcelable (or any other type) extras to an Intent as
> you like - just make sure that the String key is unique for each.
>
> Think hash tables.
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers"...

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