Code example for FragmentActivity

Methods: getActionBar

		// Set up the dropdown list navigation in the action bar. 
		actionBar.setListNavigationCallbacks(adapter, this);
		// Use getActionBar().getThemedContext() to ensure 
		// that the text color is always appropriate for the action bar 
		// background rather than the activity background. 
	public void onRestoreInstanceState(Bundle savedInstanceState) {
		// Restore the previously serialized current dropdown position. 
		if (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) {
	public void onSaveInstanceState(Bundle outState) {
Experience pair programming with AI  Get Codota for Java