I want to run/test Android apps on the Android emulator and I want to type using my PC keyboard, as it lets me type and test faster. When I use the emulator though, it only accepts input from the native Android (on-screen) keyboard. How can I enable my PC keyboard for use within the Android emulator?
|
|
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:
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" (minus the quotes) 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 and then you can see a list of all the hardware options. Change the hw.keyboard from "no" to "yes". Hope this helps! |
|||
|
|
|
This answer is for those who built the emulator from source (i.e. Following instructions from source.android.com). You need to modify a property in the following file:
In the following section of that file change the default value from no to yes:
Then rebuild (using make). At least this worked for me. |
|||||
|
|
As a few have indicated here, the PC keyboard should be enabled for the AVD Emulator instances. Judging by what the emulator page on Android Developer says about key commands and such, it does not appear there is a way to enable/disable PC keyboard usage within the SDK. Your best bet is re-installing the SDK then, and try again. |
|||
|
|
|
Try Ctrl + F11 or NumPad 7. That should enable your keyboard, unless is disabled from somewhere else. |
|||||||||||||
|
protected by Community♦ Jan 16 at 7:21
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.


