Home Ask Login Register

Developers Planet

Your answer is one click away!

Developer February 2016

Kill app whenever it goes to background

I am creating an app. From MainActivity -> Fragment -> See Details Activity.

It is working fine.

But when I am going to background on See Details Activity, it is still running.

Why this activity or app is not getting destroyed. I want to kill the app whenever I will go to background.


Illya Bublyk February 2016

Invoke finish() method before start Fragment

Nirel February 2016

Add this:

@Override public void onPause() { super.onPause(); // Always call the superclass method first

Post Status

Asked in February 2016
Viewed 3,777 times
Voted 11
Answered 2 times


Leave an answer

Quote of the day: live life