15

A couple questions about the back button (as seen on the emulator)...

  1. Do all Android phones have the back button as a hard, tactile button?

  2. If so, is it still recommended to put a back button in your software?

  3. Is it possible to change the animation between activities when this back button is pressed? I would like it to be consistent with the animations in my app.

Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
dfetter88
  • 5,381
  • 13
  • 44
  • 55
  • for #3 see http://stackoverflow.com/questions/12047770/android-how-to-animate-an-activity-transition-when-the-default-back-button-is – tir38 Jul 13 '16 at 21:31

2 Answers2

21
  1. All Android phones have a dedicated BACK button. It is not always a "hard, tactile" button.

  2. It is never recommended to put a BACK button in your software.

  3. Reportedly, yes, but I do not have the answer handy, sorry.

Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
1

For 3: Yes.

@Override 
public void onBackPressed() {
    super.onBackPressed();
    overridePendingTransition(R.anim.zoom_enter, R.anim.zoom_exit);
}
IliaEremin
  • 3,338
  • 3
  • 26
  • 35