Instantly share code, notes, and snippets.

Embed
What would you like to do?
Start Android Intent without pushing on the history stack
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