Skip to content

Instantly share code, notes, and snippets.

@granoeste
Created May 25, 2012 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save granoeste/2788034 to your computer and use it in GitHub Desktop.
Save granoeste/2788034 to your computer and use it in GitHub Desktop.
[Android] no animations when Activity started.
Intent intent = new Intent(this,MyActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyTheme" parent="android:Theme">
<item name="android:windowAnimationStyle">@android:style/Animation</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment