拥有多个电话号码的所有联系人

发布于 2024-11-15 22:59:19 字数 311 浏览 7 评论 0原文

我正在尝试获取拥有多个电话号码的所有联系人。使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软糖 2024-11-22 22:59:19

这是我在做类似事情时发现的一个链接。这是一本非常全面的 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文