How do I disable the hardware buttons from the samsung devices. Beside the home-button which is a normal button, they have touch-sensitive menu and back button. The onKeyDown and onKeyUp are not called. I implemented this in the activity:
public boolean onKeyDown(int keyCode, KeyEvent event) {
Log.d(this.getClass().getName(), keyCode + "");
Log.d(this.getClass().getName(), event.KEYCODE_MENU + "");
if (keyCode == KeyEvent.KEYCODE_MENU) {
return true;
}
return super.onKeyDown(keyCode, event);
}
It works for the volume buttons, but not this touch-buttons.
Thank you