我正在开发同步适配器。 我发现了这个:http://groups.google.com/group/android-developers/msg/85f9304dfcc4e284
在该论坛中,一名谷歌员工表示:
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.
我找不到这些新功能的文档。谁能告诉我在哪里可以找到它?
谢谢
最佳答案
在撰写本文时,它们似乎完全没有记录。最好的办法是查看 ICS 源代码。
这是 4.0.3 中的相关源文件,它似乎将 android.provider.CONTACTS_STRUCTURE 元数据声明转换为可用对象。
请注意,支持 <EditSchema>
标记在您的元数据中,这(我想)是无缝第 3 方集成的关键。
关于android - 用于编辑联系人的蜂窝同步适配器功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8343372/