0

I want to finish my activity, tried:

finish();
Activity.this.finish();
finishAffinity();

killing process...

It's how I am opening activity from service:

           Intent a = new Intent(getApplicationContext(), Axctivity.class);
        a.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK
                | Intent.FLAG_ACTIVITY_SINGLE_TOP
                | Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(a);
        stopSelf();

After finish, activity is succesfully hidden but still stay on runnining apps list when I can restore it.

1 Answers1

0

It's how finish() works. It doesn't destroy the object nor the activity. The android OS keeps the processes around to speed up getting back into the applications. See what exactly Activity.finish() method is doing?

Community
  • 1
  • 1
ricol070
  • 492
  • 2
  • 11