Code example for FragmentActivity

Methods: onConfigurationChanged

0
	} 
	 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
		initMenu(true); 
		super.onConfigurationChanged(newConfig);
	} 
		 
	@Override 
	public boolean onKeyDown(int keyCode, KeyEvent event) {
 
        //Toggle the menu on menu key press. 
 
        switch(keyCode){
	    	case KeyEvent.KEYCODE_MENU:
	    		toggleMenu(); 
	    		return true; 
	    } 
	    return super.onKeyDown(keyCode, event);
	}