вторник, 3 июня 2014 г.

Android uiautomator UIObject.SetText for non-english characters

The problem is that the UIObject.setText method accepts only english characters.
The man sumio wrote the greate helper to solve this issue https://github.com/sumio/uiautomator-unicode-input-helper
To change input method via adb use:

enable first
adb shell ime enable jp.jun_nama.test.utf7ime/.Utf7ImeService

set as default
adb shell ime set jp.jun_nama.test.utf7ime/.Utf7ImeService

to view all input methods use
adb shell ime list -a