相关疑难解决方法(0)

以编程方式添加Word for Word预测

我正在使用UserDictionary.Words类的addWord函数将Words添加到Dictionary中,以便它们可以显示在Text预测中.单词确实存在于字典中APP_ID=0,可用于默认的android键盘.但是我使用的是Swift键盘,并没有将这些词用于预测.

我正在使用这个教程

 UserDictionary.Words.addWord(this, "ThisIsSomeWordIwantForPrediction", 250, null, Locale.getDefault());
Run Code Online (Sandbox Code Playgroud)

我的问题是我如何添加单词,以便它们可用于所有键盘的预测

android cpu-word keyword android-userdictionary

8
推荐指数
1
解决办法
978
查看次数