Code example for ActionBarActivity

Methods: onPostCreate

0
        } 
    } 
 
    @Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mDrawerToggle.syncState();
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        mDrawerToggle.onConfigurationChanged(newConfig);
    } 
 
    private void selectItem( int pos ) {
        final FragmentManager fragmentManager = getSupportFragmentManager();
 
        if ( pos == 0 ) {
            fragmentManager.beginTransaction().replace(R.id.content_frame, photoFragment).commit();
        } else if ( pos == 1 ) {