Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is Disabling Menu Button possible?

I am trying to make a restricted android launcher for some people. The key features that I am trying is

  • Giving Access to Selected App to be laucnched.
  • Disable the button that allows to show user to show every app installed on the phone
  • Disable physical button (menu) in order to restrict user to go in to "Settings" menu of Android.

If these features are possible, it would be great if you could link me any examples or explain how to do this.

Thank you.

like image 217
Jae Park Avatar asked Feb 18 '26 10:02

Jae Park


2 Answers

@Override
public boolean onPrepareOptionsMenu (Menu menu) {
    return false;
}

Documentation says:

You must return true for the menu to be displayed; if you return false it will not be shown.

like image 146
Chintan Soni Avatar answered Feb 21 '26 01:02

Chintan Soni


Override the onPrepareOptionsMenu

public boolean onPrepareOptionsMenu (Menu menu) {
   return false;
}
like image 33
silly Avatar answered Feb 21 '26 01:02

silly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!