android - disable application from running in background -


Is my application disabled from running on background? I do not want to run my app in the background, I need to close it completely to the user

When you turn them off, call complete properly on all your activities, if you start any activity that you expect of a result value, then make sure that before finishing In those activities, call setResult () .

If you have any threads that are running, if your app is running when your activity starts (on onResume () , this variable is turned on Set to true, and when your activity stops (set onPause () ), then just make sure that your threads 'loop' before checking this global value. Take that you will end up happily after your activity is over.

Awa, turn must try to automatically terminate your activities when the user back button Last activity in press stack, terminate your application.


Comments