Android 为什么我的安卓模拟器键盘是汉字模式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2268239/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why is my Android emulator keyboard in Chinese character mode?
提问by mckoss
I'm debugging my Android application using the AVD (Android Virtual Device). When I try to enter text in a text field, my characters are being interpreted as Chinese in the IME.
我正在使用 AVD(Android 虚拟设备)调试我的 Android 应用程序。当我尝试在文本字段中输入文本时,我的字符在 IME 中被解释为中文。
I don't know how I got into this mode or how to get out of it (I just want to enter alphabetic keys)?
我不知道我是如何进入这种模式或如何摆脱这种模式的(我只想输入字母键)?
Here's a screen shot:
这是一个屏幕截图:
回答by Christopher Orr
If you were running monkey
at some point, it probably changed the input method — it happens quite often.
如果你monkey
在某个时候运行,它可能改变了输入法——这种情况经常发生。
You can change the input method by long-pressing on an input field and choosing Input Method → Android Keyboard. I think you can also long-press on the bottom-left key on the virtual keyboard.
您可以通过长按输入字段并选择输入法 → Android 键盘来更改输入法。我认为您也可以长按虚拟键盘上的左下键。
Note you can also disable the Japanese and other input methods from being activated entirely via Settings → Keyboard → untick the box next to each IME.
请注意,您还可以通过设置 → 键盘 → 取消选中每个 IME 旁边的框来完全禁用日语和其他输入法。
回答by Ankur
I have a very simple trick..I found that.. Just go to the default browser provided in the emulator..then click on the address bar of the browser.. Magic....your language is now changed to English..
我有一个非常简单的技巧..我发现了..只需转到模拟器中提供的默认浏览器..然后单击浏览器的地址栏..魔术..你的语言现在更改为英语..
回答by Ricardo Rivaldo
Or you can just long press a
或者你可以长按一个
Text Field > Input Method > Android Keyboard
Text Field > Input Method > Android Keyboard
See: I cannot remove the Japanese IME from my Android emulator
回答by sergeytch
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
>
adb shell
#
mount -rw -o remount /dev/block/mtdblock0 /system
#
rm /system/app/PinyinIME.apk
the same, but easier to put into Jenkins:
相同,但更容易放入 Jenkins:
>
adb shell mount -rw -o remount /dev/block/mtdblock0 /system
>
adb shell rm /system/app/PinyinIME.apk
>
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
您可以首先通过运行来检查哪个设备安装到 /system
#
mount
#
mount
in adb shell.
在 adb 外壳中。
If you need to remove another IME - just change a filename in "rm" command.
如果您需要删除另一个 IME - 只需在“rm”命令中更改文件名。