本文介绍了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
发布评论