Code example for ActionBarActivity

Methods: onOptionsItemSelected

0
                // http://developer.android.com/design/patterns/navigation.html#up-vs-back 
                // 
                NavUtils.navigateUpFromSameTask(this);
                return true; 
        } 
        return super.onOptionsItemSelected(item);
    } 
 
} 
Experience pair programming with AI  Get Codota for Java