使用这个方法,id代表你的输入法在系统中的序号:       Settings.Secure.putString(getContentResolver(),
            Settings.Secure.DEFAULT_INPUT_METHOD,
            id);
下面的方法可以获得所有输入法的信息:
        InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);        mInputMethodProperties = imm.getInputMethodList();完了以后,请将输入法安装在system/app 目录下,要不设置会出错。