Code example for FragmentActivity

Methods: onDestroy

0
 
	@Override 
	protected void onDestroy() { 
		if (ttsManager != null)
			ttsManager.finish();
		super.onDestroy(); 
	} 
 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
		Log.d(TAG, "PlayQuizActivity: configuration changed: " + newConfig);
 
		super.onConfigurationChanged(newConfig);
 
		// do not call viewHelper.adaptLayout(); : widht/height of layout not 
		// changed yet, 
		// and ViewTreeObserver will be called when they are anyway 
		/* 
		 * if(viewHelper!=null){ viewHelper.adaptLayout(); } 
		 */ 
Stop searching for code, let great code find you!  Add Codota to your java IDE