Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable navigation keys in android programmatically

Tags:

android

how do I disable the menu, home, back and search key programmatically in android, including the vibrate when those keys are pressed.

like image 820
user1174960 Avatar asked Jun 04 '26 07:06

user1174960


1 Answers

You can't disable the home button. The back button you'll need to override onBackPressed(), and the menu button shouldn't do anything unless you assign it an action.

If you mean disable these system-wide, I'm afraid glad you can't do that.

like image 58
Glitch Avatar answered Jun 05 '26 21:06

Glitch