Saturday, 14 September 2013

Query android user dictionary return nothing

Query android user dictionary return nothing

I'm trying query words from UserDicionary but nothing is returned. What
I'm doing wrong?
here is my code:
Cursor cursor = getContentResolver().query(UserDictionary.Words.CONTENT_URI,
new String[] {UserDictionary.Words.WORD}, null, null, null);
cursor.moveToFirst();
while(cursor.moveToNext())
{
//nothing is logged...
Log.d("Palavra", cursor.getString(0));
}

No comments:

Post a Comment