Sunday, August 14, 2011

[android-developers] Access user dictionary

I'm writing an InputMethod and trying to load the words from the user
dictionary:

Cursor cursor = getContentResolver().query(UserDictionary.CONTENT_URI,
null, null, null, null);

This line fails with the following exception:

java.lang.IllegalArgumentException: Unknown URI content://user_dictionary

What am I doing wrong?

Peter

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment