When developing applications for ICS - the actionbar looks different depending on if there is a physical menubutton present on the device or not.
For example if not, a virtual button is displayed in the actionbar.
Is it possible to emulate a device without a menubutton by disabling it somehow in the emulator?
Open the AVD Manager, Click
Show on Diskoption, Edit the
config.inifile from the opened directory, find
hw.mainKeysconfig and set it to
yes`
hw.mainKeys = yes
Save the file and restart the AVD.
Refer screenshots below for more details
As @Yenchi said, tick on 'hw.mainKeys'. The virtual device will look like second picture.
With updated SDK tool (R22 as of this answer), the AVD manager editor no longer expose these options on the UI. You have to edit the config.ini of your AVD manually and change the following key from
hw.mainKeys=yes
to
hw.mainKeys=no
There is an option "hardware back/home keys". Specify the option and set it to "no" when creating the virtual device.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With