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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -