This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Null Cursor  RSS feed

 
goel swati
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to display contacts in two_line_list_item.

for getting contacts details, I am using Data table.

To find cursor i m using getContentResolver() and writing a query as

Cursor cursor = getContentResolver().query(Data.CONTENT_URI, null, Data.MIMETYPE + " = 6 " , null, null);
startManagingCursor(cursor);

int ct = cursor.getCount();
Log.d("Cursor","cursor count is "+ct);

but its retruning cursor as null
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!