java - Kill app whenever it goes to background -


i creating app. mainactivity -> fragment -> see details activity.

it working fine.

but when going background on see details activity, still running.

why activity or app not getting destroyed. want kill app whenever go background.

add this:

@override public void onpause() { super.onpause(); // call superclass method first finish(); } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -