Contacts
Contacts copied to clipboard
Issues when returning results from API
Sorry for my bad English but I have problems with your library and need your help.
1 : When I add new contact or new number in my contacts, this API did not return correct results I desired. Which takes a while to display the correct new results.
2 : Some contact without number did not show even though I did not set "hasPhoneNumber()".
Thanks.
The library queries the ContactsContract.Data join table. If there's a delay between the time you create a contact and that table being updated, it's out of my hands.
Try querying the table without my API:
Cursor c = context.getContentResolver().query(ContactsContract.Data.CONTENT_URI, null, null, null, null);
There are some constraints the library automatically puts. It will only bring Contacts that contain the data requested in the include function. (default include will get you contacts with metatypes phone, email and event).
There are about 15 metatypes, but I only implemented the most common ones. What other data do you need?