How to use UiObject#setText to set non-Latin alphabets (e.g. umlaut) in Android's uiautomator
<p>According to the source code of Android 4.1.1_r1:</p>

<p><strong>com.android.uiautomator.core.UiObject</strong>'s <code>setText(String text)</code> method will first <code>clearTextField()</code> and then <code>return getInteractionController().sendText(text);</code></p>

<p>And in <strong>com.android.uiautomator.core.InteractionController</strong>, the <code>sendText</code> method actually convert <code>text.toCharArray()</code>, then return <code>KeyEvent[]</code> by calling <code>nativeGetEvents()</code>.</p>

<p>Of course the <strong>android.view.KeyEvent</strong> only contains telephone keys, no umlaut(ä,ö,ü,ß) or other charset.  But there does have a KeyEvent called <code>public static final int KEYCODE_LANGUAGE_SWITCH = 204;</code></p>

<p>While the problem is <strong>InteractionController</strong> class seems like being removed after Android 4.2, thus I could not hack it via sending any KeyEvent directly.</p>

<p>Could anyone tell me if there is any solution or workaround to send non-Latin alphabets to the emulator?  Thanks for your help.</p>
