Skip to content

Instantly share code, notes, and snippets.

@jgdoncel
Created December 12, 2013 14:57
Show Gist options
  • Save jgdoncel/7929300 to your computer and use it in GitHub Desktop.
Save jgdoncel/7929300 to your computer and use it in GitHub Desktop.
Android: Reiniciar una aplicación
Intent i = getBaseContext().getPackageManager().getLaunchIntentForPackage( getBaseContext().getPackageName() );
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment