Code example for ActionBarActivity

Methods: onSaveInstanceState

0
        mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
	} 
	 
	@Override 
	public void onSaveInstanceState(Bundle savedInstanceState) {
	    super.onSaveInstanceState(savedInstanceState);
	    savedInstanceState.putString(BUNDLE_SAVED_FRAGTAG, currentFragTag);
	    savedInstanceState.putString(BUNDLE_SAVED_TITLE, mTitle);
	} 
	 
	@Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mDrawerToggle.syncState();
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        mDrawerToggle.onConfigurationChanged(newConfig);
    }