AVD hardware buttons not enabled

2020-01-29 04:12发布

I just downloaded and installed the new Android SDK. When I start the emulator, on the emulator screen it says "Hardward Buttons not enabled in AVD". There are Home, Menu, etc are all disabled. How do I make these buttons enabled?

7条回答
手持菜刀,她持情操
2楼-- · 2020-01-29 04:32

The accepted answer is kind of deprecated now, because the android emulator interface changed a little bit.

If you need to display hardware buttons on your android emulator you have to uncheck this toggle inside your android emulator setings -> hardware profile:

enter image description here

查看更多
我命由我不由天
3楼-- · 2020-01-29 04:33

Go to Tool > Android > SDK Manager > Tool >Manage AVDs > Select Your Emulator > Edit and manage your setting and Restart Android Studio

If you don't understood Please follow the link there is details with screenshot image

http://solutionfrominternet.blogspot.com/2015/01/how-to-show-system-navigation-bar-in.html

查看更多
干净又极端
4楼-- · 2020-01-29 04:36

I had to delete my AVD and completely recreate it with the hardware buttons activated in order to make it work. Simply modifying the existing device definition didn't fix it for some reason.

查看更多
萌系小妹纸
5楼-- · 2020-01-29 04:44

For those who cannot make it work: before recreating an AVD, try first to press the numlock key as this influences the behavior of the Fn keys. In my case, if numlock is off, F2 doesn't work.

查看更多
放荡不羁爱自由
6楼-- · 2020-01-29 04:47

I know it has been a long time since the question was asked, but just to let the others to know.

You can manually edit the config.ini settings (on Windows 7 you can find it on C:/Users/the_user/.android/avd/the_emulator_name/config.ini).

Find out the line:

hw.mainKeys=no

And change to:

hw.mainKeys=yes

Hope this helps.

查看更多
Viruses.
7楼-- · 2020-01-29 04:49

To test your application on an emulator that represents the latest Android device, you can create an AVD with the new WXGA720 skin (it's an xhdpi, normal screen device). Note that the emulator currently doesn't support the new on-screen navigation bar for devices without hardware navigation buttons, so when using this skin, you must use keyboard keys Home for the Home button, ESC for the Back button, and F2 or Page-up for the Menu button.

Taken from: http://developer.android.com/tools/revisions/platforms.html

查看更多
登录 后发表回答