How to clear activity stack in android

I have the following application stream in an android app,

Login-> Home-> screen1-> screen2-> screen3-> screen4-> logout

On screen4, I have a logout button that allows the user to exit the application and re-enter the system. When you re-enter the application, the previous data is still displayed. Is there a way to launch the application when the user exits the application?

NOTE: in all of the above launch start modes, the value is set to "single task",

Regards, Sam.

+3
source share
4 answers

, logout onResume(), finish(). , .

+2

, , , , , , ?

0

AndroidManifest.xml. Android:. ClearTaskOnLaunch

-1

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


All Articles