拥有多个电话号码的所有联系人
我正在尝试获取拥有多个电话号码的所有联系人。使用 sqlite3,我像这样查询数据库:
select number,name,person,type
from view_v1_phones
where person in
(select person from view_v1_phones group by person having count(*)>1);
并得到了我正在寻找的内容。但是,当我使用联系人 api (ContactsContract) 查询数据库时,我不知道如何使用它。
帮助!
I'm trying to get all the contacts that have more than one phone number. Using sqlite3, I queried the database like this:
select number,name,person,type
from view_v1_phones
where person in
(select person from view_v1_phones group by person having count(*)>1);
and got what I was looking for. However, I don't know how I can use this when I'm querying the database using contacts api (ContactsContract).
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我在做类似事情时发现的一个链接。这是一本非常全面的 Android 联系人指南。这是一本6页的指南!希望这有帮助:
http://www.higherpass.com/ Android/教程/使用 Android-Contacts/1/
Here is a link I found when I was working on something similar. This one is a pretty comprehensive guide to contacts in android. It is a 6-page guide! Hope this helps:
http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/1/