[android-developers] Re: Saving Activity state when pressing Home

2009-11-20 Thread jax
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:

Re: [android-developers] Re: Saving Activity state when pressing Home

2009-11-20 Thread TreKing
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

[android-developers] Re: Saving Activity state when pressing Home

2009-11-19 Thread vendor.net
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