On Tue, Jun 21, 2011 at 3:37 PM, Devin Whalen <[email protected]> wrote:
> So what do I do? Persist your data in onSaveInstanceState() which is called if the app is stopped and eligible for being killed and restore it in onRestoreInstanceState(). That's the case if the user navigates away to another activity (via a notification or pressing Home), you don't ask them to save. Otherwise if they are exiting your app, they will have pressed the back key, so intercept the Back Key and if there is data that needs saving, prompt them, do what they want, then continue to finish() the activity. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/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

