Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- int id = item.getItemId();
- // When the home button is pressed, take the user back to the MainActivity
- if (id == android.R.id.home) {
- NavUtils.navigateUpFromSameTask(this);
- }
- return super.onOptionsItemSelected(item);
- }
Add Comment
Please, Sign In to add comment