String key = Settings.Secure.DEFAULT_INPUT_METHOD;//"default_input_method"
String id = "com.xx.inputmethod.pinyin/.xxxME";//输入法ID
boolean success = Settings.Secure.putString(
BaseSettingsApplication.getInstance().getContentResolver(), key, id);
android 程序中设置默认输入法
最新推荐文章于 2026-08-04 13:48:25 发布
本文介绍了一种通过修改系统设置来更改设备上默认输入法的方法。使用了Settings.Secure类的putString方法,将指定的输入法ID(如com.xx.inputmethod.pinyin/.xxxME)设置为默认输入法。

768

被折叠的 条评论
为什么被折叠?



