使用这个方法,id代表你的输入法在系统中的序号: Settings.Secure.putString(getContentResolver(),
Settings.Secure.DEFAULT_INPUT_METHOD,
id);
下面的方法可以获得所有输入法的信息:
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mInputMethodProperties = imm.getInputMethodList();完了以后,请将输入法安装在system/app 目录下,要不设置会出错。
Settings.Secure.DEFAULT_INPUT_METHOD,
id);
下面的方法可以获得所有输入法的信息:
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mInputMethodProperties = imm.getInputMethodList();完了以后,请将输入法安装在system/app 目录下,要不设置会出错。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货