Android的个人词典应用的问题 [英] Android Personal Dictionary App Issues
问题描述
我想写Android平台的个人字典应用程序。结果
有喜欢的添加,编辑,删除标准功能。结果
我将创建一个个人应用程序数据库来跟踪的话。结果
一旦这个词在个人字典添加的;它应该出现在汽车,当用户在短信/邮件应用程序键入它表明结果我看着下面code片段,并试图在我的应用程序合并:结果
I am trying to write a personal dictionary application on android platform.
There are standard features like add,edit,delete.
I will be creating a personal application database to keep track of words.
Once the word is added in the personal dictionary; it should appear in the auto suggest when user is typing it in messaging/mail apps.
I looked at the following code snippet and tried to incorporate in my app:
UserDictionary.Words.addWord(this, "Joglekar", 1, "Jogl", getResources().getConfiguration().locale);
在code执行罚款,但这个词不会出现在自动提示打字时。结果我在测试HTC One X的,截至目前。照片上如何做到这一点的任何线索?结果有几个跟进的问题,但会等待这一个来解决。 :)
The code executes fine but the word does not appear in the auto suggest while typing.
I am testing on HTC One X as of now.
Any leads on how to accomplish this ??
Have a few follow up questions but will wait for this one to resolve. :)
推荐答案
尝试以外加给你的应用的AndroidManifest.xml文件中的<应用>
元素:
Try adding this to your app's AndroidManifest.xml file outside of the <application>
element:
<uses-permission android:name="android.permission.WRITE_USER_DICTIONARY"></uses-permission>
该解决方案曾在类似的问题,在这里找到:单词添加到Android的UserDictionary
This solution worked at a similar problem, found here: Add Words to Android's UserDictionary
这篇关于Android的个人词典应用的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!