Code example for FragmentActivity

Methods: finish

0
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			finish(); 
			return true; 
		default: 
			return false; 
		} 
	} 
}