如何获取 google 联系人但不获取 Gmail 联系人?
我正在提取手机中存储的联系人信息。我正在开发2.1。
我能够从查询中提取每个 RawContacts,包括我不需要的“自动 gmail 联系人”。
我已经做了很多搜索,但还没有找到任何好的答案。
查看我手机的电话簿(HTC Hero),有一个选项可以对用户隐藏这些“自动 Gmail 联系人”。我正在寻找的正是这个。
为了澄清事情,我需要的只是谷歌联系人,而不是 Gmail 联系人。
简而言之,是否有一个实现,可能是来自“where”子句或 Content-URI 部分,我可以在其中设置过滤掉“自动 Gmail 联系人”?
预先感谢您的帮助。
I'm extracting the information of contacts stored in the phone. I'm working on 2.1.
I'm able to extract every RawContacts from the query including "auto gmail contacts" which I do not need.
I've done quite a bit searching on SO but could not find any good answers yet.
Looking at my phone's phonebook (HTC Hero), there's an option to hide those "auto gmail contacts" from the user. What I'm looking for is exactly that.
To clarify things, all I need is the google contacts but none of the gmail contacts.
In short, is there an implementation, may it be from the "where" clause or the Content-URI part where I can set to filter away the "auto gmail contacts"?
Thanks in advance for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google 有两个联系人数据集。一个用于 Gmail 系统,另一个用于 Google Plus+。
Gmail系统是一个按标签分类的数据库,对于iOS来说,将与“我的联系人”相关的标签同步到设备上。
我认为 Android 也是如此。
我希望这有帮助。
Google has two datasets for contacts. One is for the Gmail system, and the other is for Google Plus+.
The Gmail system is one database categorized by labels, for iOS sync the label associated with "My Contacts" in synchronized to the device.
I would assume this is the same for Android.
I hope this helps.