Implement OnSaveInstanceState() and OnResumeInstanceState() in your
activity...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, May 23, 2012 at 12:13 PM, Timothy McColgan <[email protected]>wrote:

> I have an Activity that has a field which is an ArrayList, that
> Activity starts an Activity which returns an object to be added to the
> list. The first Activity then adds buttons dynamically to itself based
> on the object that Activity B returns. My problem is that everytime
> Activity B is started the ArrayList in Activity A seems to be getting
> collected by the GC. Wondering if there is a way to fix this or if its
> a design flaw. The code isnt the prettiest, im new to Android dev.
>
> Thanks
>
> --
> 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

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