我怎样才能在Android的编程方式创建一个联络小组? [英] How can I create a contact group programmatically in Android?

查看:126
本文介绍了我怎样才能在Android的编程方式创建一个联络小组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建一个联络小组,给它一个特定的名称,然后将联系人添加到它。

I want to create a contact group, give it a particular name and then add contacts to it.

我可以接触的通过 RawContacts 的,但我不知道该怎么

I can make contacts by using RawContacts class but I do not know how to

  1. 创建一个联络小组
  2. 然后将联系人添加到特定的组。

是否有人可以帮我出了一些样品code?

Can someone please help me out with some sample code?

推荐答案

组是没有的联系人应用程序/内容提供商/谷歌联系人同步适配器上Android的一部分,但你会需要直接使用谷歌联系人API,请参阅< A HREF =HTTP://$c$c.google.com/apis/contacts/docs/3.0/developers_guide_protocol.html#CreatingGroups rel="nofollow">http://$c$c.google.com/apis/contacts/docs/3.0/developers_guide_protocol.html#CreatingGroups

Groups are not part of the contacts app / content provider / Google contacts sync adapter on Android, but you will need to use the Google Contacts API directly, see http://code.google.com/apis/contacts/docs/3.0/developers_guide_protocol.html#CreatingGroups

这篇关于我怎样才能在Android的编程方式创建一个联络小组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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