Hello.
I have been attempting to make an Android application, built against 2.0, that requires getting all of the user's contacts and displaying them in a formatted way.
I have been able to get a list using a Cursor
and the ContactsContract.Contacts
class. However, the list I get from that provider only gives me the contacts that are either from the user's Google account, or contacts that have two or more sources (e.g. Google + Facebook, Two Facebook accounts, etc). It does not give me the entire list.
Those that seem left out are primarily those that come only from the user's Facebook account, and have no other source.
This is the query call I'm using:
Cursor contactsCursor = getContentResolver()
.query(android.provider.ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
My question is is it possible to get all the contacts from every single source (Google, Facebook, etc) in the user's phonebook?
Thanks!