Created
April 28, 2015 13:47
-
-
Save trevorrjohn/b1d835957989c563f017 to your computer and use it in GitHub Desktop.
android clear back stack of for next activity
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(this, NextActivity.class); | |
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 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