How to handle \"Up\" button (SDK version 11+)? I am referring to the one at the top of screen, that holds the application icon.
In Android Design articles it was nam
Implement onOptionsItemSelected() and watch for android.R.id.home "menu" events, as is described in the documentation.
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
// do something useful
return(true);
}
return(super.onOptionsItemSelected(item));
}