Most users press the back button for a reason. They may not take it gracefully when they get patronized "Are you really sure?". It may be easier for you to just take the appropriate action in your game (save the state, suspend the game).
On Monday, May 7, 2012 9:24:17 AM UTC-4, Fran wrote: > > Hi there, > > I am writing my first Android game. I have following the Mario > Zechner's book "Begining Android Games" that I have found very useful > to quick introduce in this world. In the first middle of his book his > proposes a basic framework that I am using, that uses just one > activity for all the game. This approach is perfect for my needs in > this first game, and everything is working fine but some little > problems. > > One of these is that when the user press the back button of the phone - > I mean that with a curved arrow-, the application is closed, so I want > to ask for confirmation or something similar so, is there anyway to > easy control this? > > Thanks a lot in advance, > -- 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

