All contacts that have more than one phone number

孤人 提交于 2019-12-24 21:12:25

问题


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!


回答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/



来源:https://stackoverflow.com/questions/6404689/all-contacts-that-have-more-than-one-phone-number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!