onbackpressed in activity code example Example: onbackpressed @Override public void onBackPressed() { super.onBackPressed(); }