Seriously, instead of waiting for a reply that explains to you all 
different scenarios when and how the VM crashes, you should start coding a 
solution the clean way and either pass over that data via Intent, store it 
in some SharedPreferences object or in a database or something.

You don't necessarily need to implement Parcelable (which is indeed a pain 
in the backside). If your data classes carry just some serializable members 
then add the Serializable interface to them. Serializable objects can also 
be bundled as Intent extras via 
putSerializable()<http://developer.android.com/reference/android/os/Bundle.html#putSerializable%28java.lang.String,%20java.io.Serializable%29>.
 
It's pretty much effortless to use.

If your data classes contain contexts or other non-serializable members, 
declare these members as transient:

private transient Context mContext;
>

And on de-serialization in your next Activity you can assign these members 
again.

Java Collections (like your String List in above example) are serializable 
by the way.

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