Wednesday, May 5, 2010

[android-developers] Re: save (complex?) application state to bundle

OK, that leaves me with figuring out how to serialize parts of
objects.
Thanks alot.

On May 3, 9:47 pm, TreKing <treking...@gmail.com> wrote:
> On Fri, Apr 30, 2010 at 11:33 AM, blew <pascal.jac...@gmail.com> wrote:
> > Unfortunately it appears that we can't serialize bitmaps and considering
> > they're a part of my "creature" I can't seem to see a workaround.
>
> You don't have to serialize out every single part of an object - only those
> parts which contain it's current state. In this case you would care about
> which image was currently displayed, so you'd save an index or ID for that
> image. The images themselves don't need to be serialized out since they
> don't change. Just reload them as necessary.
>
> ---------------------------------------------------------------------------­----------------------
> TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> 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 athttp://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 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

No comments:

Post a Comment