我的应用有两个部分,一个是InputMethodService,另一个是Activity。我在Activity中点击按钮以查看所有可用的输入法,但是在列表中无法看到我的输入法。
但是在此之后,我可以从“设置”>>“语言和键盘”中看到它。
以下是相关代码:
但是在此之后,我可以从“设置”>>“语言和键盘”中看到它。
以下是相关代码:
InputMethodManager inputManager = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE);
inputManager.showInputMethodPicker();