开发者

Android Text Fields default to Chinese

I'm working off of code that isn't originally my own. Right 开发者_如何学运维now, I'm having this problem when the user inputs text, it defaults first to the Chinese IME.

I'm sure it's not a java locale setting or anything of the sort. Everything else displays correctly. I'm also not prepopulating the input areas or anything besides having the standard (name) (password) etc.

Thanks.


It's a general issue for emulators (and probably for some real devices).

For emulator you can run such two commands to remove Pinyin IME (so latin would become default):

> adb shell

# mount -rw -o remount /dev/block/mtdblock0 /system

# rm /system/app/PinyinIME.apk

the same, but easier to put into Jenkins:

> adb shell mount -rw -o remount /dev/block/mtdblock0 /system

> adb shell rm /system/app/PinyinIME.apk

You can first check which device is mounted to /system by running

# mount

in adb shell.

If you need to remove another IME - just change a filename in "rm" command. Note: this will remove Pinyin IME completely. While you're not completely sure - don't do it on real devices as it would be hard to bring that IME back :)


If you are using an emulator, I think your keyboard is set to use the chinese keyboard and if you change the keyboard setting your problem should be resolved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜