Code example for FragmentActivity

Methods: getActionBar

	public void onRestoreInstanceState(Bundle savedInstanceState) {
		// Restore the previously serialized current dropdown position. 
		if (savedInstanceState.containsKey(STATE_SELECTED_NAVIGATION_ITEM)) {
	public void onSaveInstanceState(Bundle outState) {
		// Serialize the current dropdown position. 
		outState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getActionBar()
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
Connect your IDE to all the code out there  Get Codota for Java