Code example for ActionBarActivity

Methods: getActionBar

0
	 * Set up the {@link android.app.ActionBar}, if the API is available. 
	 */ 
	@TargetApi(Build.VERSION_CODES.HONEYCOMB)
	private void setupActionBar() { 
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
			getActionBar().setDisplayHomeAsUpEnabled(true); 
		} 
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(R.menu.result, menu);
		return true; 
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home: