Issue
Installed AndroidStudio 2.3, created a new virtual device having advanced setting hw.keyboard=true
Now I can use my PC keyboard to type text. Unfortunately I cannot find a way to change the keyboard layout from US-Style to match my german PC Keyboard.
Especially typing in some symbols like e.g. "@" seems quite problematic (which would be <Alt-Gr> + <q> for a German layout).
Searching for answers all information I find is only about activating hw.keyboard (e.g. Android emulator doesn't take keyboard input - SDK tools rev 20 ) - which is not my problem.
My workaround: I installed F-Droid in the emulation and with that I installed Hacker's Keyboard. OK now I can use the soft-keyboard within the emulation but still would like to use my normal pc-keybaord.
Solution
An alternative way is to create a keyboard char map file (*.kcm) and start the emulator via the command line.
See this documentation for details.
Here is a small extract from my current map file to map the key z to y and vice versa:
#keycode display number base caps fn caps_fn
Y 'Z' 'z' 'z' 'Z' 'z' 'Z'
Z 'y' 'y' 'y' 'Y' 'y' 'Y'
To use the charmap file (*.kcm) start the emulator with:
$ ./emulator -avd [AVD_DEVICE] -charmap /path/to/quertz.kcm
All available keycodes can be found in the source from the emulator.
Answered By - user10008009
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.