PC keyboard not working in Android emulator

I can’t use the PC keyboard to enter characters into an application running on the AVD emulator, even if I selected “Enable keyboard input” when creating AVD. Can anyone help?

Next will be my config.ini:

avd.ini.encoding=UTF-8 AvdId=Nexus_5_API_21 abi.type=x86_64 avd.ini.displayname=Nexus 5 API 21 disk.dataPartition.size=200M hw.accelerometer=yes hw.audioInput=yes hw.battery=yes hw.camera.back=none hw.camera.front=none hw.cpu.arch=x86_64 hw.dPad=no hw.device.hash2=MD5:2fa0e16c8cceb7d385183284107c0c88 hw.device.manufacturer=Google hw.device.name=Nexus 5 hw.gps=yes hw.gpu.enabled=yes hw.keyboard=yes hw.lcd.density=480 hw.mainKeys=no hw.ramSize=1536 hw.sdCard=yes hw.sensors.orientation=yes hw.sensors.proximity=yes hw.trackBall=no image.sysdir.1=system-images/android-21/default/x86_64/ runtime.network.latency=none runtime.network.speed=full runtime.scalefactor=0.25 sdcard.path=/Users/xxxxxx/.android/avd/Nexus_5_API_21.avd/sdcard.img skin.dynamic=yes skin.name=nexus_5 skin.path=/Applications/Android Studio.app/Contents/plugins/android/lib/device-art-resources/nexus_5 snapshot.present=no tag.display=Default tag.id=default vm.heapSize=64 

Additional Information: I am using Mac OS X 10.10.4 (Yosemite). Android Studio 1.3

+2
android emulator avd
source share
3 answers

I had this question, despite the correct configuration, and realized that the actual problem was that the main focus was on the windows of the emulator control buttons, as reported in this question .

To check if this is your problem, see if clicking on one of them clicks one of these buttons, and if clicking on the tab moves the focus highlight square between the emulator controls. If this is a problem, you should be able to work around it as follows:

  • Select advanced controls ("..." button in emulator elements)
  • Change any item in the advanced controls window by clicking
  • Close the advanced controls window

Now you need to return to the main window of the Android emulator, and not to the elements of the emulator, and keystrokes should go to Android applications.

+5
source share

try to change the following.

 hw.keyboard = yes hw.keyboard.lid = no hw.keyboard.charmap = qwerty2 
+2
source share

UPDATE:

Change hw.keyboard = yes .

And make the config.ini file Read-only :

  • Right-click on file open its settings .

  • Make each options in tab permissions in Read-only (see screenshot)

    enter image description here

Believe me, this will work, because this file overwritten, when we block it, the bug disappears.

0
source share

All Articles