Monday, July 2, 2012

Re: [android-developers] activity looses ArrayList<> items

On Mon, Jul 2, 2012 at 2:52 PM, alex b <alex_brambila@yahoo.com> wrote:
The problem is that it looses items and it seems to have after the GC runs.  So what am I missing?

I would guess your "serializeIt" and "deserializeIt" methods are buggy. Debug your app.

Also, both onCreate and onRestoreInstanceState will be called when necessary, so you should not duplicate the same code in both methods (in your case, calling "restoreRecents".

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate