10

I am using the AVD manager in eclipse. Is there a setting that I can use to stop the on screen keyboard appearing when an input field has focus?

I tried has hardware keyboard = true, but then the emulator doesn't seem to start at all :-S

Chris
  • 109
  • 1
  • 1
  • 3

3 Answers3

13

mstoic's answer works, but with one problem: Google voice typing gets enabled with no way to get rid of it.

Not sure if this is available in emulators of all Android versions, but I found this in Settings -> System -> Languages & Input -> Physical keyboard (API 29 emulator). It worked for my use case.

Android emulator for API 29

funct7
  • 3,407
  • 2
  • 27
  • 33
  • Works for me. Also noticed a keyboard icon appearing the navigation bar next to the app switcher button. Clicking that opened a quick setting to turn it off – latsson Mar 16 '21 at 15:02
6

The emulated device should have a physical keyboard, therefore negating the need for a soft keyboard.

I tried it out now and this configuration combination works for me:

hw.keyboard=yes
hw.touchScreen=no

The AVD has a physical keyboard, but no touchscreen, therefore only the physical keyboard can be used for text input, and the emulator does not show the soft keyboard.

Christopher Orr
  • 110,418
  • 27
  • 198
  • 193
4

Simply disable the Gboard app on your emulator.

To do that, go to Settings > Apps > Gboard, and then click the "DISABLE" button.

enter image description here

If Gboard is not visible, make sure you select the three dots in the top right corner and select the "Show system" option.

enter image description here

In some apps, you may see the Voice input box instead of the keyboard, you can disable that too by disabling the Google app in the same way you disabled Gboard.

enter image description here

Hemant Aggarwal
  • 849
  • 1
  • 7
  • 13