I try to rewrite the method onKeyDown, like this:
@Override
public boolean onKeyDown (int keyCode, KeyEvent event){
if((keyCode == KeyEvent.KEYCODE_MENU)
||(keyCode == KeyEvent.KEYCODE_POWER)){
super.onKeyDown(keyCode, event);
return false;
}
else{
return true;
}
}
it works for the other keys, but not for "HOME". How can I disable it?
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en