Hi Trekking, If I use onrestoreinstance state then if I started timer say at 00:00:00 it started n its running, and presses on home then I will store the timer value. after some time, for ex I go back to app at 00:56:45 sec if the timer gets killed then I don't get the latest or upated value from restore instance state,if I am not wrong..?
On Thursday, October 10, 2013, TreKing <[email protected]> wrote: > > On Wed, Oct 9, 2013 at 9:41 PM, Abhilash baddam < [email protected]> wrote: >> >> Otherwise shall I use the service so that android system doesn't kill the service..? > > Android will kill your Service if need be. This is not a solution. > >> >> Is there any other better approach for this...?? > > Yes. Read the documentation. Review the app lifecycle. Pay particular attention to the documentation on saving and restoring state. > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered devices > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

