onPause() is the only reliable method to put code to be run on exit. However, not much should be there except to save state if needed. Doing a lot of work before exiting is a great way to get someone to uninstall your app.
On Thu, May 13, 2010 at 3:43 PM, Moto <[email protected]> wrote: > What exactly are you trying to do? > > On May 13, 9:34 am, Lee <[email protected]> wrote: > > Is isFinishing() guaranteed to return true in onPause() when an > > activity is being killed by the system ? > > > > If not, how is it possible to differentiate activity-being-killed and > > one of the other reasons for onPause() being called ? > > > > It must apparently be done in onPause(), since that's the only one > > guaranteed to be called by the system according to the lifecycle doc. > > > > Thanks, > > > > Lee > > > > -- > > 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]<android-developers%[email protected]> > > For more options, visit this group athttp:// > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Robert Casto www.IWantFreeShipping.com Find Amazon Filler Items easily! -- 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

