Created
May 7, 2013 10:00
-
-
Save fdomig/5531562 to your computer and use it in GitHub Desktop.
Start Android Intent without pushing on the history 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
public void doSomething() | |
{ | |
Intent intent = new Intent(this, SomeOtherClass.class); | |
// do not keep this intent in history | |
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); | |
startActivity(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment