Android Emulator: Enable keyboard input

Testing android apps with the emulator and not being able to use the normal keyboard to enter text is very annoying and not really efficient. Unfortunately the default device (ATM: Nexus 5) has keyboard input disabled. Enabling it is very easy:

  1. Go to your user’s home directory and search for a folder .android
  2. Open the folder and navigate to the folder avd. You will find one folder for each installed device. Open the folder of the device you are using.
  3. Find the file config.ini and open it in your favourite text editor.
  4. Search for a line starting with hw.keyboard. Change its value to yes. If the line is not present, add the line hw.keyboard=yes

Done. Start the emulator and you will see that the text input is working.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s