Keyboard 如何在Android Things 1.0.15中添加键盘语言

Keyboard 如何在Android Things 1.0.15中添加键盘语言,keyboard,android-source,android-things,Keyboard,Android Source,Android Things,我需要在Android Things 1.0.15版中向AOSP键盘添加语言 当我试图长按空格键旁边的按钮(“,”)修改语言时,应用程序崩溃: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.INPUT_METHOD_SUBTYPE_SETTINGS flg=0x14200000 (has extras) } 我试图安装其他键盘,如gboar

我需要在Android Things 1.0.15版中向AOSP键盘添加语言

当我试图长按空格键旁边的按钮(“,”)修改语言时,应用程序崩溃:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.INPUT_METHOD_SUBTYPE_SETTINGS flg=0x14200000 (has extras) }
我试图安装其他键盘,如gboard或swiftkey,但没有成功。我无法启动这些应用程序


您知道其他解决方法吗?

我解决了安装Gboard的问题,然后使用以下代码以编程方式选择键盘:

    InputMethodManager inputMethodManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
    inputMethodManager.showInputMethodPicker();