Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to use keyboard in Android emulator

I just set up of Android development environment in Ubuntu 12.04. I made an AVD for Android version 2.3.3 and ran my app on it. But I am not able to use my computer's keyboard or keyboard given on the right side of it. What is the reason for this?

My ADT version is 20.0. I was earlier developing on Windows and it was working fine.

like image 633
rishiag Avatar asked Jul 03 '12 18:07

rishiag


People also ask

How do I fix Android Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How do I close the keyboard on Android emulator?

Simply disable the Gboard app on your emulator. To do that, go to Settings > Apps > Gboard, and then click the "DISABLE" button.


2 Answers

Got the answer from here. Apparently they have removed default keyboard support after ADT 20.0, so we need to add keyboard support manually by editing the AVD.

like image 50
rishiag Avatar answered Oct 28 '22 14:10

rishiag


I have just tested and it still works perfectly. You just need to enable this. And I do not see anything in the AVD documentation that would show it is no longer supported. Probably they have added the support back.

AVD settings for the different Android version seem slightly different. For old versions (2.x), add the hardware property "Keyboard support", set the value to yes, as shown here:

Keyboard support - 2.1

For newer versions, there is a checkbox you need to check:

Keyboard support - 4.1.2

I have just tested on my Android development environment (Eclipse, Ubuntu) - for both cases, the keyboard does work inside the emulator.

like image 42
Audrius Meškauskas Avatar answered Oct 28 '22 16:10

Audrius Meškauskas