how can I do something before current activity go background by Back key?
Posted
by backspace7
on Stack Overflow
See other posts from Stack Overflow
or by backspace7
Published on 2010-04-12T07:07:49Z
Indexed on
2010/04/12
7:13 UTC
Read the original article
Hit count: 188
android
When back key is pressed, current activity goes background. I'd like to show a popup and let user choose really close this activity, before current activity go background. I tried to override onStop(), but it's called after activity goes back.
Please somebody explains me how to do that?
© Stack Overflow or respective owner