我正在尝试从 UserDicionary 查询单词,但没有返回任何内容。我做错了什么?
这是我的代码:
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));
}