Android 通过 ID 获取联系人组

发布于 2024-07-15 01:38:20 字数 64 浏览 5 评论 0原文

我有联系人 ID,如何获取联系人所属的组? 我确信这与 Contacts.Groups 类有关,但我无法弄清楚。

I have a contact ID, how do I get the group the contact is assigned to? I am sure it is something to do with the Contacts.Groups class but I cannot figure it out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

度的依靠╰つ 2024-07-22 01:38:20

GroupMembership.PERSON_ID 中,您拥有人员的 ID,在同一个表 GroupMembership.GROUP_ID 中,您拥有组的 ID。 您可以使用 Contacts.Groups 检索组。

请记住,每个“表”中都有唯一的 ID 来标识行。

希望这可以帮助。 (我也在努力)

In GroupMembership.PERSON_ID you have the ID of the Person, and in the same table GroupMembership.GROUP_ID you have the ID of the group. You can retrieve the groups with the Contacts.Groups.

Remember that in every "table" there is and unique ID to identify the row.

Hope this helps. (Im working on it too)

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