List of usage examples for android.content Intent FLAG_ACTIVITY_NO_ANIMATION
int FLAG_ACTIVITY_NO_ANIMATION
To view the source code for android.content Intent FLAG_ACTIVITY_NO_ANIMATION.
Click Source Link
From source file:org.mozilla.gecko.GeckoApp.java
public boolean showAwesomebar(AwesomeBar.Type aType) { Intent intent = new Intent(getBaseContext(), AwesomeBar.class); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NO_HISTORY); intent.putExtra(AwesomeBar.TYPE_KEY, aType.name()); if (aType != AwesomeBar.Type.ADD) { // if we're not adding a new tab, show the old url Tab tab = Tabs.getInstance().getSelectedTab(); if (tab != null) { Tab.HistoryEntry he = tab.getLastHistoryEntry(); if (he != null) { intent.putExtra(AwesomeBar.CURRENT_URL_KEY, he.mUri); }// w w w. java 2s . com } } mOwnActivityDepth++; startActivityForResult(intent, AWESOMEBAR_REQUEST); return true; }
From source file:com.bernard.beaconportal.activities.activity.MessageList.java
private void restartActivity() { // restart the current activity, so that the theme change can be applied if (Build.VERSION.SDK_INT < 11) { Intent intent = getIntent();/* w w w . ja v a2 s . c o m*/ intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); finish(); overridePendingTransition(0, 0); // disable animations to speed up // the switch startActivity(intent); overridePendingTransition(0, 0); } else { recreate(); } }