<div dir="ltr">Hi David,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 6:56 AM, David Jaša <span dir="ltr"><<a href="mailto:djasa@redhat.com" target="_blank">djasa@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
So what you need to test is to switch the keyboard layout in the OS to<br>
the interesting one (no idea how you do that in android)</blockquote><div><br></div><div>There is no built-in way to switch layouts on Android. You can change the language of your soft-keyboard, but the moment you pair or attach a hardware keyboard, the soft keyboard disappears. Moreover, the layout seems to switch back to English when that happens on my device - ouch!<br>
<br>I It looks like there are hacks to deal with that like this application:<br><a href="https://play.google.com/store/apps/details?id=com.apedroid.hwkeyboardhelper&hl=en">https://play.google.com/store/apps/details?id=com.apedroid.hwkeyboardhelper&hl=en</a><br>
<br></div><div>which on first glance appears to allow you to change your layout when a hardware keyboard is being used.<br><br></div><div>So, either Android has a way to guess the hardware keyboard's layout based on its device ID, or regardless of what symbols are actually written on your hardware keyboard, it sends KeyEvents with "unreliable" [sic] scan codes and invalid key codes, or it sends KeyEvents with a unicode character set (something hard to believe, I know). I'm still not clear on this, and I need for somebody to actually test it for me.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> and press some<br>
key. For example, the key with semicolon ";" on english/us layout<br>
produces "ů" when switched to czech layout.<br></blockquote><div><br></div><div>I am not sure how this would apply on Android and that's why I'm asking :).<br><br></div><div>Finally, can somebody also voice your opinion on the reliability of scan codes on Android given what's written in the API?<br>
<a href="http://developer.android.com/reference/android/view/KeyEvent.html#getScanCode%28%29" target="_blank">http://developer.android.com/reference/android/view/KeyEvent.html#getScanCode%28%29</a><br><br>Thanks!<br></div>
<div>iordan<br></div></div></div></div></div>