0

I'm working on an app that deals with contacts, and I am looking for ContactsContract compatible equivalents to both of these constants:

Contacts.Groups.GROUP_MY_CONTACTS
Contacts.Groups.GROUP_ANDROID_STARRED

I find it hard to believe that these constants no longer apply in ContactsContract. Am I missing something?

Jesta
  • 1,387
  • 2
  • 9
  • 9

1 Answers1

1

You should be able to get GROUP_ANDROID_STARRED from the STARRED column in ContactsContract.Contacts. I'm not too sure about the GROUP_MY_CONTACTS, but perhaps IN_VISIBLE_GROUP from ContactsContract.ContactsColumns may be what you're looking for.

Marc Bernstein
  • 11,423
  • 5
  • 34
  • 32
  • @marc-bernstein Thanks for your answer. I haven't been able to get my code working using the GROUP_ANDROID_STARRED column. Do you have an example of code to pull this value for a contact? – Jesta Feb 10 '11 at 02:58