i am new to android programming. in my application if i press a backbutton or from phone back key it is coming out of application directly with out asking me to quit or resume again .
i was thinking that may be i should call a intent and set up another class and also set xml file for that class or how to do this .actually i had seen this in some game where the back button is used to disable and show some resume and quit button on it .please help me do this .it will be great help
Thank you,
maddy.
Please try this code :