Hi all, I've written an Android App using the ContactsContract API to read contacts. I would like to read ONLY phone contacts, ignoring any SIM contacts, Google contacts, WhatsApp contacts, etc etc.
My App enumerates all ContactsContract entries and finds the following values: RawContacts.ACCOUNT_NAME field can have values like "Phone contacts", "[email protected]", etc. RawContacts.ACCOUNT_TYPE field can have values like "com.sonyericsson.localcontacts", "com.google", "com.whatsapp", etc To get ONLY phone contacts, I suppose I can filter ACCOUNT_NAME with the string literal "Phone contacts". However, is it a confirmed way? Will this string literal ever change in future Android releases? Similarly, how to read ONLY SIM contacts? Thank you. Regards, Eric -- 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

