蜂巢同步适配器功能编辑联系人 [英] honeycomb sync adapter features for editing contacts

查看:139
本文介绍了蜂巢同步适配器功能编辑联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个同步适配器。 我发现这一点: http://groups.google.com/group/android-developers /味精/ 85f9304dfcc4e284

I'm developing a sync adapter. I found this: http://groups.google.com/group/android-developers/msg/85f9304dfcc4e284

在该论坛上谷歌员工说:

In that forum a google employee states:

在的Andr​​oid姜饼通过综合编辑的版本从巧克力慕斯蛋糕    第3方接触甚少支持。关键是要插入数据    行,编辑在MyApp的,这将用户带到您的应用程序和您的应用程序    然后将提供一个编辑器的活动。此外,还有在没有规定    联系方式UI创建第三方账户的新的联系。我们有固定的    这些问题在蜂窝。现在,您可以指定两个活动的    元数据的XML文件:一个用于创建新的联系人,一个用于编辑    现有的,瞧! - 你有无缝集成

In releases of Android from Eclair through Gingerbread integrated editing of 3rd party contacts is poorly supported. The trick is to insert a data row, "Edit in MyApp", which would take the user to your app and your app would then provide an editor activity. Also, there is no provision in the Contacts UI for creating new contacts in 3rd party accounts. We have fixed those issues in Honeycomb. Now you can specify two activities in your metadata xml file: one for creating new contacts and one for editing existing ones and voilà! - you have seamless integration.

我找不到这些新功能的文档。谁能告诉我在哪里可以找到它?

I can't find the documentation of these new features. Can someone tell me where I can find it?

感谢您

推荐答案

写这篇文章,他们似乎是完全没有证件。最好的办法是看通过ICS源$ C ​​$ C。

As of writing this, they appear to be completely undocumented. Your best bet is to look through the ICS source code.

下面是4.0.3,这似乎转换android.provider.CONTACTS_STRUCTURE元声明成可用对象相关的源文件。

Here is the relevant source file in 4.0.3 which seems to convert a android.provider.CONTACTS_STRUCTURE metadata declaration into a usable object.

<一个href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.0.3_r1/com/android/contacts/model/ExternalAccountType.java" rel="nofollow">http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.0.3_r1/com/android/contacts/model/ExternalAccountType.java

请注意有一个&LT支持; EditSchema&gt;以元数据,这(我想)的关键是无缝第三方整合标记

这篇关于蜂巢同步适配器功能编辑联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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