I read another thread here a few days ago that pointed out that an Application object can be used as a central place for data shared between activities. It seems to be working nicely for me. I don't use it to pass data back from subactivites, but I imagine it would work just as well.
However, in M5 the Application process seems to hang around after all my activities have finished, even if I explicitly set android:persistent="false" in the manifest. I don't know if this is just a disadvantage of having an Application class or a bug. But I'd be concerned if I were keeping large amounts of data there. On Mar 24, 5:39 pm, hackbod <[EMAIL PROTECTED]> wrote: > On Mar 24, 2:42 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > > > 1. I could not get the serializable passing ability of a Bundle to > > work. It has to do with a incorrect classloader error. I think it's > > the same error that got in the road of serialization in the m3 sdk. It > > was possible to work around though. > > We had a really, really stupid mistake in M5. All of the support for > propagating custom Parcelable and Serializable objects is there in M5, > but at one place in the system code we print the Intent that is being > used to start an activity... which prints the extras bundle > associated with the intent... which causes the bundle to try to > instantiate its data... which goes boom. > > This will be fixed in an upcoming SDK. I know it is unfortunate. :( > > > 2. I've heard serialization is slower than implementing your object as > > a parcelable. > > Yes it is. We highly suggest using Parcelable if you can. --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

