Android Question msgbox confirming exit of app

jazzzzzzz

Active Member
Licensed User
Longtime User
I want to show a msgbox2 when user press the back button to exit?

i put the dialog box in activity pause but its not allowed and cannot be used because if user pressed the continue button then there is no way to continue activity....So i think i should get the key event of back button...I need help in doing that please provide some example of it..
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…