I'd like to kill my app whenever the user use the Exit item in my app's menu.
How it can be done?
Currently, I'm using System.exit(0). But, the result of using it, is rerun the application.
Thanks,
Eyal.
Well, according to the Android application life cycle, onDestroy() is the last thing to be called before the app finally dies, and I read that it responds to, for instance, a call from YourActivity.finish().
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.