Code example for FragmentActivity

Methods: onResume

0
		super.onCreate(savedInstanceState);
	} 
 
	@Override 
	public void onResume() { 
		super.onResume(); 
		mInstanceStateSaved = false;
		if (isThemeChanged() || isHardwareAccelerationChanged()) { 
			restart(); 
		} 
	} 
 
	public void restart() { 
		restartActivity(this);
	} 
 
	public void setHardwareAcceleration() { 
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
			final SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
			final boolean hardware_acceleration = mHardwareAccelerated = preferences.getBoolean(
					PREFERENCE_KEY_HARDWARE_ACCELERATION, true);