0

I am running this code from this Sending message through WhatsApp

Cursor c = getSherlockActivity().getContentResolver().query(ContactsContract.Data.CONTENT_URI,
        new String[] { ContactsContract.Contacts.Data._ID }, ContactsContract.Data.DATA1 + "=?",
        new String[] { whatsappid }, null);  
c.moveToFirst();

But the cursor count which I am getting is 0

I am using whatsappid as 911234567890 where 91 is country code

Please Help me out

Community
  • 1
  • 1
sachin pareek
  • 411
  • 7
  • 18

0 Answers0