On Sun, Jun 5, 2011 at 11:43 AM, Emanuel Moecklin <[email protected]> wrote:
> What other way do I have to prevent the StackOverflowError?

I'd start by testing your serialization code in a unit test and
confirm that it works, independent of its use with Bundle. Perhaps you
have done this already -- it's not clear from your posts.

If you conclude that it is indeed Bundle that is the source of your
woe, hold onto this specific object via
onRetainNonConfigurationInstance(). That object will be retained on a
configuration change (e.g., screen rotation) but will be lost for
other onSaveInstanceState() scenarios.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.0 Programming Books: http://commonsware.com/books

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