Code example for ActionBarActivity

Methods: getSupportActionBar, onSaveInstanceState

0
    } 
 
    @Override 
    protected void onSaveInstanceState(Bundle outState) {
        // Almacena qué pestaña tenemos seleccionada. 
        outState.putInt("opcion", getSupportActionBar()
                .getSelectedNavigationIndex()); 
        super.onSaveInstanceState(outState);
    } 
 
}