String phonenumberString=PhontUliti.formatPhoneNumber(number);
String[] contactsProjection=new String[]
{People.NAME,People._ID,People.NUMBER,Contacts.Phones.TYPE};
Cursor contactsCursor=context.getContentResolver().query
(People.CONTENT_URI,
contactsProjection, People.NUMBER +" = "
+phonenumberString,
null, People.DEFAULT_SORT_ORDER);
Why the contactsCursor is null?
The number is in the contacts.
Is there any mistakks in the query?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---