Skip to content

Instantly share code, notes, and snippets.

@fdomig
Created May 7, 2013 10:00
Show Gist options
  • Save fdomig/5531562 to your computer and use it in GitHub Desktop.
Save fdomig/5531562 to your computer and use it in GitHub Desktop.
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