How can I finish all the actions in the current Android task?

Is it possible to complete all the actions in the current Android task?

+8
source share
2 answers

They have already asked here.
But basically, there is no such function ... Maybe you could save a collection of all types of activities and finish them yourself, but I doubt this good practice.
Or, if all your actions are in the same "stack", you can try the answer given by "user370305".

0
source

There is another alternative. A whole application can be performed using fragments with a single activity. FragmentManager provides complete control over fragments, and they can be finished.

0
source

Source: https://habr.com/ru/post/900277/


All Articles