My first thought was to suggest that you rethink if you really need to do this - maybe your app isn't going to be as important to your users as you may think.
But then, I been frustrated in the past by games which exit in the middle of the game if you press too far right... Maybe you should provide an option (which you'd only ever ask once): "Always confirm before exiting" > I can find some posts on how to warn user when the back button is > pressed to 'quit' the application. > > The common answer is to catch the key down event by onKeyDown, or use > startActivityForResult(). > > My approach is to restart the activity in onStop(). > Is it a better choice? > > Please help to check if there's anything inappropriate. -- 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

