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);
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE