Keyboard support

Monkey Targets Forums/Android/Keyboard support

Leon Brown(Posted 2012) [#1]
Is it just me or does Monkey not support USB keyboard input for Android?


therevills(Posted 2012) [#2]
Nope, Monkey does not support USB keyboards. It currently only supports onscreen keyboards and the "back" button.

Also USB support was added at Android 3.1 and Monkey supports 1.6(?)...


Leon Brown(Posted 2012) [#3]
Shame - all my Android 2.2+ devices support USB keyboard input though. Are you sure USB keyboard support wasn't added earlier than 3.1?


therevills(Posted 2012) [#4]
Hmm, I was looking here:

http://developer.android.com/sdk/android-3.1.html

Maybe Android worked with a USB keyboard pre 3.1 (ie it allowed input when the soft keyboard is displayed), but you could not actually use the input from the API (from the Java code)... maybe ;)


Leon Brown(Posted 2012) [#5]
USB keyboard support on Android 2.x seems to be done via associating it with the virtual keyboard. Is there any way in which Monkey can have the ShowKeyboard command active, but with the virtual keyboard display hidden? I know this has been done on some web browser apps.