Code example for ActionBarActivity

Methods: onConfigurationChanged

0
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig)
    { 
        super.onConfigurationChanged(newConfig);
        mDrawerToggle.onConfigurationChanged(newConfig);
    } 
 
    @Override 
    public boolean onOptionsItemSelected(MenuItem item)
    { 
        // Pass the event to ActionBarDrawerToggle, if it returns 
        // true, then it has handled the app icon touch event 
        if (mDrawerToggle.onOptionsItemSelected(item))
        { 
            return true; 
        } 
 
        return super.onOptionsItemSelected(item);
    }