How to disable QSB ..?

When a user clicks the search button on the device, Android displays a quick search bar. How to disable quick search bar?

+1
android
source share
2 answers

To completely disable the quick search bar, override the onSearchRequested() method and unconditionally return true.

+2
source share

override onKeyDown in your activity:

 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_SEARCH) { return true; } else return super.onKeyDown(keyCode, event); } 
+1
source share

All Articles