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.
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.
Simply disable the Gboard app on your emulator. To do that, go to Settings > Apps > Gboard, and then click the "DISABLE" button.
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.
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:
For newer versions, there is a checkbox you need to check:
I have just tested on my Android development environment (Eclipse, Ubuntu) - for both cases, the keyboard does work inside the emulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With