8

I have just updated to ADT 20 and the newest of SDK, but since then dunno why I cannot type from keyboard (hardware) in AVD (emulator).

halfer
  • 19,824
  • 17
  • 99
  • 186
Developer by Blood
  • 155
  • 1
  • 3
  • 11
  • possible duplicate http://stackoverflow.com/questions/11235370/android-emulator-doesnt-take-keyboard-input-sdk-tools-rev-20 – Kishore Jul 20 '12 at 04:19

3 Answers3

31

In your Eclipse IDE, go to the AVD Manager and select your emulator device.

Click on Edit to edit the properties of this device.

In the Hardware section, click on New.

In the Property drop-down list, select Keyboard Support and press OK.

This add the property in your list of hardware but has a value "no" by default.

Click on the value column and change it to "yes".

Click on "Edit AVD" once again to save your changes.

This will add a property hw.keyboard=yes in config.ini file for the AVD and now your emulator will support input form the keyboard.

Swayam
  • 16,294
  • 14
  • 64
  • 102
  • While these instructions seem to work most of the time, I'm having issues (on OSX) where I can add the keyboard, but setting it to "Yes" doesn't stick. – Lucky Luke Jan 25 '13 at 15:11
  • @LuckyLuke : Could you kindly elaborate your `issues` in a question and send the link to me ? I would do my best to be of any help. – Swayam Jan 25 '13 at 16:28
  • I already found the solution, this seems to be a bug in the AVD manager. After adding keyboard support and setting it to yes, one has to click on any other field in the list, and then it will actually work. – Lucky Luke Jan 29 '13 at 17:54
2

Edit the device and add Keyboard Support.

Mayur
  • 676
  • 8
  • 16
0

If you have a skin, check the hardware.ini that have hw.keyboard = yes

Ajinkya
  • 22,324
  • 33
  • 110
  • 161