I had the same issue after upgrading the developer tools (v20.0.0v2012…). All of a sudden none of my android virtual devices would accept any input from my physical PC/Mac keyboard.
This is how I fixed it:
- Eclipse >
- Select your virtual device and click
Keyboard Supportthen click
- Edit its value to
- Now you have to click off onto another item in the list, like “Abtract LCD Density” or something. This seems to make the UI keep the “yes” change.
My other AVDs that don’t have this “keyboard support” hardware property added do NOT accept my physical keyboard input.
Please try the following settings. My environment (Target: Android 4.0.3 – API Level 15) successful.
AVD – Edit – Hardware: – New… – Keyboard support – yes
AVD – Edit – Hardware: – New… – Keyboard lid support – no
You need to change the
config.ini file in your
.android directory. This file is found under the main hard drive directory.
From there, open the
avd file and you will see a list of virtual devices. Open the desired device and then open the
config.ini in notepad. Then copy this text:
hw.keyboard = yes and then save and close. The next time you open your emulator, you should be able to use the keyboard.
You can also open up the
hardware-qemu.ini file in the same directory as the
config.ini file, and then you can see a list of all the hardware options. Change the
Hope this helps!