Android的获取联系人组由ID

编程入门 行业动态 更新时间:2024-10-09 09:18:15
本文介绍了Android的获取联系人组由ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个接触的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. Thanks, Isaac

推荐答案

在 GroupMembership.PERSON_ID 你的人的ID,并在同一个表 GroupMembership.GROUP_ID 你有组的ID。您可以检索组与 Contacts.Groups 。

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.

请记住,在每一个表存在和唯一的ID标识行。

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

希望这有助于。 (IM工作太)

Hope this helps. (Im working on it too)

更多推荐

Android的获取联系人组由ID

本文发布于:2023-11-22 00:31:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1615283.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:联系人   Android   ID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!