List of usage examples for android.support.v4.app ActionBar getSelectedTab
public abstract ActionBar.Tab getSelectedTab();
From source file:com.actionbarsherlock.sample.hcgallery.MainActivity.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); ActionBar bar = getSupportActionBar(); int category = bar.getSelectedTab().getPosition(); outState.putInt("category", category); outState.putInt("theme", mThemeId); }