When the user removes the "Logout" in my application, I would like them to be moved to the "Logon" and destroy all other running or paused actions in my application.
My application uses general settings to bypass the "Login" action at startup if the user has previously logged in. Therefore, FLAG_ACTIVITY_CLEAR_TOP will not work in this case, because the input activity will be at the top of the activity stack when the user is delivered there.
source
share