0

I need a conversation cursor which does not have given addresses. This is how i am getting the cursor :

final Uri inboxURI = Uri.parse("content://mms-sms/conversations/");    
final String[] projection = new String[] { Sms._ID, Sms.THREAD_ID, Sms.ADDRESS, Sms.BODY, Sms.DATE, Sms.READ};    
Cursor cursor = cr.query(inboxURI, projection, Sms.ADDRESS+" NOT IN (?)", new String[]{"456454"}, Telephony.Sms.Inbox.DEFAULT_SORT_ORDER);

This gives me an empty cursor. However this works fine if null is given as selection and selection_args.

Is this correct way?

Thanks in advance.

Shivam Verma
  • 7,973
  • 3
  • 26
  • 34
manu
  • 1

0 Answers0