Disable menubutton in Android emulator

When developing applications for ICS, the action panel looks different depending on whether a physical edition exists on the device or not.

For example, if not, a virtual button is displayed in the action bar.

Is it possible to emulate a device without a menu by disabling it somehow in the emulator?

+8
source share
4 answers

There is an option "back / home keys". Specify a parameter and set it to "no" when creating a virtual device.

+10
source

With the updated SDK tool (R22 for that matter), the AVD manager editor no longer sets these parameters in the user interface. You must edit config.ini of your AVD manually and change the next key from

hw.mainKeys=yes

to

hw.mainKeys=no

+5
source

As @Yenchi said, tick hw.mainKeys. The virtual device will look like a second picture.

enter image description here enter image description here

+2
source

Open AVD Manager, Click Show on disk " option, Edit the file from the opened directory, find config.ini file from the opened directory, find config and set it to hw.mainKeys config and set it to Yes".

 hw.mainKeys = yes 

Save the file and restart AVD.

See screenshots below for more details. enter image description here enter image description here

0
source

Source: https://habr.com/ru/post/903596/


All Articles