Code example for ActionBarActivity

Methods: onOptionsItemSelected

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