Created
April 6, 2016 17:28
-
-
Save talosdev/c375e00fc87fd58bdaae1044f4828329 to your computer and use it in GitHub Desktop.
On logout, when we want to clear the back stack and navigate to a different Activity, the following Intents must be used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | | |
Intent.FLAG_ACTIVITY_CLEAR_TASK | | |
Intent.FLAG_ACTIVITY_NEW_TASK); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment