Skip to content

Instantly share code, notes, and snippets.

@ironhalik
Created July 8, 2014 11:53
Show Gist options
  • Save ironhalik/d13b5725d08a9b1cf81c to your computer and use it in GitHub Desktop.
Save ironhalik/d13b5725d08a9b1cf81c to your computer and use it in GitHub Desktop.
@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
// Do something here
break;
case R.id.your_other_action_bar_button:
// Do something else
break;
}
return super.onMenuItemSelected(featureId, item);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment