java - onBackPressed not Called Immediately - No Keyboard for id 0 - Android -


i overriding onbackpressed method in app :

public void onbackpressed() {          system.out.println("back pressed");         mp.stop();         finish();     } 

the problem button needs pressed @ least 3 times before method called. first couple of times :

no keyboard id 0 using default keymap : /system/user/keychars/qwerty.kcm.bin 

can spot wrong ?

call super.onbackpressed();

for more detail see link


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -