Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you completely disable hardware back and menu keys?
    primarykey
    data
    text
    <p>I would like to entirely disable the menu and back keys as soon as possible in the creation sequence of my activity.</p> <p>Currently, I can only manage to disable the effect of the back button, the menu key still launches the Google search (I'm on a Samsung device FYI :))</p> <p>Things I have tried: Overriding the following in my Activity:</p> <pre><code>@Override public boolean onMenuOpened(int featureId, Menu menu) { // TODO Auto-generated method stub return false; } @Override public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { // TODO Auto-generated method stub return false; } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub return false; } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { // TODO Auto-generated method stub return false; } @Override public boolean onKeyShortcut(int keyCode, KeyEvent event) { // TODO Auto-generated method stub return false; } @Override public boolean onSearchRequested() { // TODO Auto-generated method stub return false; } @Override public boolean onKeyLongPress(int keyCode, KeyEvent event) { // TODO Auto-generated method stub return false; } </code></pre> <p>Also tried all this with "true" instead (was getting desperate). Also tried being more specific with my overrides and tried the typical (KeyEvent.KEYCODE_SEARCH, _DOWN, etc..) (since this is just a subset of the above, it was sure it wouldn't work... don't even know why I tried!)</p> <p>Anyone have any ideas?</p> <p>Thanks!</p> <p>/e Removed part about vibration</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload