android修改默认输入法

方案一:adb命令设置?
方案2:系统配置;
方案3:调用系统API接口设置

获取输入法列表
adb shell ime list -s

获取默认的输入法
adb shell settings get secure default_input_method

设置输入法为默认输入法
adb shell settings put secure default_input_method com.sohu.inputmethod.sogou/.SogouIME
adb shell settings put secure default_input_method +输入法

public static final int PRODUCT_ID_GTBU = 4; //GTBU 租赁版本
private static final String package_name = "com.bingime.ime";
//com.bingime.ime.BackgroundService115533
public void setDefaultInputmethod() {
InputMethodService.switchInputMethod(String id);
}


https://blog.csdn.net/heiding215/article/details/17499535


https://blog.csdn.net/wkw1125/article/details/78368319

猜你喜欢

转载自www.cnblogs.com/bluestorm/p/9133688.html