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 ?

4

1 回答 1

1

称呼super.onBackPressed();

有关更多详细信息,请参阅此链接

于 2012-07-02T12:55:03.670 回答