On Apr 28, 3:46 pm, Streets Of Boston <[email protected]> wrote:
> I parse the data from the service into data that can be persisted.
>
> If the data is small enough, the data is translated into a class that
> implements Parcelable. This parcelable is then assigned to the Intent that
> starts the Activity (using 'Extras'). When the process is killed and the
> user goes back to the Activity, Android (re)starts the Activity with the
> same Intent, including the 'Extras' that hold the original data. You don't
> need to do anything special for that.

I didn't know about this feature?  You're saying if you just put
Extras on the Intent of the Activity (i.e. Activity.getIntent()), that
the system will use that same Intent/extras when it restarts after
HOME?  I knew you could Parcel data in onSaveInstanceState(), but I
didn't know about the ability to add stuff to the Intent.  Or, are you
simply talking about the same onSaveInstanceState() functionality that
I'm talking about?

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