6

Possible Duplicate:
Android emulator doesn’t take keyboard input - SDK tools rev 20

For anyone who is using custom AVD skins and SDK tools rev 20, how do you get keyboard access to work?

The solution discussed in Android emulator doesn't take keyboard input - SDK tools rev 20 only works for the fugly pixel hogging default skin (WVGA800).

Been using "Google Android Emulator Skins for Nexus S and Nexus One" found here:

http://heikobehrens.net/2011/03/15/android-skins/

I tried to edit the AVD config.ini by adding hw.keyboard = true, it still doesn't work.

Community
  • 1
  • 1
Mark Lapasa
  • 1,644
  • 4
  • 19
  • 37

2 Answers2

4

Apparently there is a hardware.ini file in each of the skin's folder (for example NEXUS-S) that specify hw.keyboard=no. You can modify this line to enable the keyboard in the AVD that is based on the skin. There is also hw.dPad=yes if you wish to use the arrow-keys.

Gili
  • 86,244
  • 97
  • 390
  • 689
Joe
  • 14,039
  • 2
  • 39
  • 49
  • +100 (16 hours from now): Ouch there goes 20%-ish of my points but hopefully your answer will help others out who went through my same plight. Tried it out and it works. Thanks. – Mark Lapasa Aug 17 '12 at 20:03
  • An exemplary answer indeed. However the description of bounty should be "One of the answers is exemplary and deserves an award". – Adnan Zahid Aug 18 '12 at 21:46
0

From Eclipse, Go to AVD Mananger. Select the particular AVD and click on Edit Go to the Hardware section, click on New. Select the Property Name : Keyboard Support By default, it is added with a value of 'no'. Just click on the value column and change it to 'yes'. Click on Edit AVD again. This will add a property hw.keyboard=yes in config.ini file for the AVD.

Android emulator doesn't take keyboard input - SDK tools rev 20

Hope this it helps

Community
  • 1
  • 1
Chaitu
  • 907
  • 2
  • 13
  • 27
  • -1 This was not helpful. All you did was reference another Stack Overflow thread I had already referenced. Are you running the emulator with a custom AVD skin? – Mark Lapasa Aug 14 '12 at 15:40
  • I know this doesn't answer the "custom AVD skin" part, but I found this thread from a google search and this was the exact answer I was looking for because I was using the default WVGA800 skin and still didn't have hardware support until I did what you described. Perhaps call that out in your answer. – Nick B Oct 04 '12 at 18:50
  • yeah i have to give -1 to this answer because it is clearly mentioned in the title of the question that keyboard is not working in the custom AVD skins.This answer is helpful for the default avd provided by the android. – Deepak Sharma Dec 10 '12 at 10:53