Code example for ActionBarActivity

Methods: onConfigurationChanged

0
        mDrawerToggle.syncState();
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        // Pass any configuration change to the drawer toggls 
        mDrawerToggle.onConfigurationChanged(newConfig);
    } 
 
    protected void selectItem(int position) {
        Fragment fragment = null;
        switch (position) {
            case 0: 
                //news 
                break; 
 
            case 1://STATS TODO: constants 
 
                fragment = StatsListFragment.getInstance(1);