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 -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -