Why did keyboard input stop working in Android Emulator

Recently upgraded my Android SDK install to r20 and now keyboard input seem to have stopped working with both existing and new AVDs.

Everything was working fine prior to the upgrade.

  • How can I dynamically create menu items?
  • Android - Emulator in landscape mode, screen does not rotate
  • IntentService won't show Toast
  • Disable Swipe for position in RecyclerView using ItemTouchHelper.SimpleCallback
  • Notification setAutoCancel(true) doesn't work
  • Android How to turn on hotspot in Android Programmatically
  • Does anyone know what would have caused this? (I’m using ubuntu 12.04 x64).

  • adb doesn't show nexus 5 device
  • change background color of Preference
  • OnItemClickListener was not work with the checkbox?
  • Play default soft keyboard sound when buttons are pressed in android
  • When do I synchronize methods or use synchronized blocks in my methods in an Android game?
  • Android : Putting Grid of dynamic&custom objects inside another Grid of dynamic&custom objects
  • 5 Solutions collect form web for “Why did keyboard input stop working in Android Emulator”

    I solved this problem by adding “Keyboard Support” to the AVD within the AVD-Manager and changing the value to “true”.

    Turns out its a change in the default settings for the emulator in r20 of the Android SDK.

    If you want to enable the keyboard for your android virtual device via command line, edit ~/.android/avd/[YOUR_AVD].avd/config.ini and add this to the file:

    hw.keyboard=yes
    

    Restart your AVD and you should be in business.

    If you want to enable the keyboard for your android virtual device via command line, edit~/.android/avd/[YOUR_AVD].avd/config.ini and add this to the file:
    hw.keyboard=yes
    Restart your AVD and you should be in business.

    Or, go to following path(in my case mukesh is user):
    mukesh/.android/avd/[YOUR_AVD].avd/config.ini and add this line
    hw.keyboard=yes

    You can learn more about this from my blog Here

    You need to add a property to your AVD to enable keyboard support.

    1. In Eclipse go to Window > Android Virtual Device Manager
    2. Select your AVD
    3. Click Edit…
    4. In the Hardware section click New..
    5. Property: Keyboard Support
    6. Click OK
    7. Change the value for Keyboard Support to “yes”
    8. Click Edit AVD
    9. Select your AVD
    10. Click Start…
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.