Re: [android-developers] Re: Saving Activity state when pressing "Home"
Don't worry about the bundle unless your app is getting killed. If you just press the home key, your app gets "paused", but retains it's internal state. You should not lose the value of whatever it is you need to keep track of.
Better questions: what does "restoredClockTime" represent? What are you actually trying to do?
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking
2009/11/20 jax <jackmatt2@gmail.com>
Hi thanks that.
The issue is that the "Bundle" object only gets passed to onCreate()
and onSaveInstanceState()
Do I have to get this manually somehow?
On Nov 20, 2:15 am, "vendor.net" <vendor....@gmail.com> wrote:
> How do you store that variable?
>
> On 19 Ноем, 17:18, jax <jackma...@gmail.com> wrote:
>
> > I need to store a variable that contains my application state
> > "restoredClockTime"
>
> > I do this in onSaveInstanceState and onRestoreInstanceState and it
> > works when I flip the screen on the G1.
>
> > The problem is when I press the Home button and then re-enter the
> > activity it does not work.
>
> > why is this?
>
>
--
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
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home