EnableKeyboard - hiding the virtual keyboard
Monkey Targets Forums/Android/EnableKeyboard - hiding the virtual keyboard
| ||
Hi. I would like to use the GetChar() function that reads keyboard input when EnableKeyboard is set, but because my app is using a real keyboard, I don't need the virtual keyboard to be shown on screen. Is there a way to hide the virtual keyboard and still be able to read input using GetChar()? I've been thinking about using the Extern command with some Java, but not sure how to do it. |
| ||
I see in update .52b there was an update to include a blind kludge for EnableKeyboard on Android, which I'm guessing could be to turn the visual keyboard off, but there is no mention in the documentation on how to use this. |
| ||
Hi, This actually works here with my Android 4.0.3 Iconia Tab + Logitech iPad bluetooth keyboard + latest Monkey. Once the keyboard is connected, the keyboardtest.monkey sample works as usual only without displaying the virtual keyboard. But virtual keyboard support on Android is indeed a mess, hopefully Nexus 7 will come to the rescue soon and provide a solid reference platform for device makers to be compatible with. |
| ||
Thanks for the update Mark. The target hardware is using Android 2.2 and I'm guessing this is something that was added in later versions of Android. I have have a small amount of experience in Java, so maybe I could write something like this: http://stackoverflow.com/questions/1109022/how-to-close-hide-the-android-soft-keyboard Would need to know how to use the Extern command though - I couldn't figure it out last time I tried. |
| ||
how to use the Extern command though - I couldn't figure it out last time I tried. Check out these posts I did for ck: http://www.monkeycoder.co.nz/Community/post.php?topic=3079&post=32899 http://www.monkeycoder.co.nz/Community/post.php?topic=3079&post=32925 |