[android-developers] Re: Chronometer save state

2012-04-03 Thread lbendlin
Per default the Android OS restarts your activity when the screen orientation changes. You can either tell the OS not to do that, or you can hook into the event and preserve/re-seed your timer. On Tuesday, April 3, 2012 10:09:11 AM UTC-4, Giuseppe wrote: During the chronometer counting, if

[android-developers] Re: Chronometer save state

2012-04-03 Thread Giuseppe
Yes I know how to tell the system to not do that with android:configChanges=orientation|keyboardHidden, but this is not useful for our app as this don't change the layout to the different view. Could you help with save state ? Il giorno martedì 3 aprile 2012 16:31:41 UTC+2, lbendlin ha scritto:

[android-developers] Re: Chronometer save state

2012-04-03 Thread Giuseppe
Yes I know how to tell the system to not do that with android:configChanges=orientation|keyboardHidden, but this is not useful for our app as this don't change the layout to the different view. Could you help with save state ? -- You received this message because you are subscribed to the

Re: [android-developers] Re: Chronometer save state

2012-04-03 Thread Nikolay Elenkov
On Tue, Apr 3, 2012 at 11:39 PM, Giuseppe porcelli.giuse...@gmail.com wrote: Yes I know how to tell the system to not do that with android:configChanges=orientation|keyboardHidden, but this is not useful for our app as this don't change the layout to the different view. Could you help with

Re: [android-developers] Re: Chronometer save state

2012-04-03 Thread Justin Anderson
Could you help with save state ? http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 3, 2012 at 8:42 AM, Nikolay Elenkov