Created
August 22, 2016 13:15
-
-
Save gorrotowi/329063ac5aa805882ea0ec935f6d4ef6 to your computer and use it in GitHub Desktop.
How to clear activity stack
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 intent = new Intent(theContextClass.this, YourClass.class); | |
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK); | |
startActivity(intent); | |
finish(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment