• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Null Cursor

 
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