Code example for FragmentActivity

Methods: onConfigurationChanged

0
    final ActionModeHelper mActionModeHelper = ActionModeHelper.createInstance();
	     
    @Override 
	public void onConfigurationChanged(Configuration newConfig) {
		// ignore orientation change 
		super.onConfigurationChanged(newConfig);
	} 
     
    @Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mActivityHelper.onPostCreate(savedInstanceState);
    } 
 
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return mActivityHelper.onKeyDown(keyCode, event) ||
                super.onKeyDown(keyCode, event);
    } 
 
    @Override