查询指定群组的联系人成员?
我需要获取 Android 联系人中特定组的成员。
我有联系人组名称及其 ID
任何人都可以告诉我如何查询特定组中成员的联系人提供程序吗?
I need to fetch the members for a specific group in android contacts.
I have the contact group names and their ID's
Can anyone provide me how to query the contacts provider for members in a particular group ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这个方法:
这适用于 Android 2.3.3 及更低版本,但不适用于 Android 4+,我目前不知道为什么。
UPD。
在 Android 4+ 中拒绝将自定义字符串参数“GROUP BY”添加到 SQL 查询,因此我找到了此解决方法:
Try this method:
This works on Android 2.3.3 and lower, but doesn't work on Android 4+ and I don't currently know why.
UPD.
Adding custom string parameter "GROUP BY" to SQL query is denied in Android 4+, so I've founded this workaround: