Code example for FragmentActivity

Methods: getActionBar

0
 
	@TargetApi(Build.VERSION_CODES.HONEYCOMB)
	private void setActionBarOptions() { 
		if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB) {
			// Show the Up button in the action bar. 
			getActionBar().setDisplayHomeAsUpEnabled(true); 
		} 
	} 
}