0

I am overriding the onBackPressed method in my app :

public void onBackPressed() {

        System.out.println("BACK PRESSED");
        mp.stop();
        finish();
    }

The problem is that the back button needs to be pressed at least three times before this method is called. The first couple of times I get :

No Keyboard for id 0
Using Default Keymap : /system/user/keychars/qwerty.kcm.bin

Can anyone spot what is wrong ?

Barak
  • 16,318
  • 9
  • 52
  • 84
GuybrushThreepwood
  • 5,598
  • 9
  • 55
  • 113

1 Answers1

1

call super.onBackPressed();

for more detail see this link

Community
  • 1
  • 1
Zaz Gmy
  • 4,236
  • 3
  • 19
  • 30