开发者

Where did Contacts.Groups.GROUP_MY_CONTACTS go?

开发者 https://www.devze.com 2023-02-06 18:36 出处:网络
开发者_开发问答I\'m working on an app that deals with contacts, and I am looking for ContactsContract compatible equivalents to both of these constants:
开发者_开发问答

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号