Code example for ActionBarActivity

Methods: onPostCreate

0
     * onPostCreate() and onConfigurationChanged()... 
     */ 
 
    @Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        // Sync the toggle state after onRestoreInstanceState has occurred. 
        mDrawerToggle.syncState();
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        // Pass any configuration change to the drawer toggls 
        mDrawerToggle.onConfigurationChanged(newConfig);
    } 
 
 
}