I am trying to make an Android application built against 2.0 that requires getting all user contacts and displaying them in a formatted way.
I managed to get the list using the class Cursorand ContactsContract.Contacts. However, the list that I get from this provider only gives me contacts from a Google user account or contacts from two or more sources (for example, Google + Facebook, two Facebook accounts, etc.). This does not give me the whole list.
Those that seem forgotten are primarily those that come only from a Facebook user account and have no other source.
This is a query request that I use:
Cursor contactsCursor = getContentResolver()
.query(android.provider.ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
My question is, is it possible to get all contacts from each source (Google, Facebook, etc.) in the user's phone book?
Thank!
user153498
source
share