Code example for ActionBarActivity

Methods: onOptionsItemSelected

0
			case android.R.id.home:
				finish(); 
				return true; 
 
			default: 
				return super.onOptionsItemSelected(item);
		} 
	} 
 
}