Android的获取联系人组由ID [英] Android Get Group of Contact by ID

查看:361
本文介绍了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆