android - 用于编辑联系人的蜂窝同步适配器功能

标签 android contacts android-3.0-honeycomb edit android-syncadapter

我正在开发同步适配器。 我发现了这个: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 元数据声明转换为可用对象。

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.3_r1/com/android/contacts/model/ExternalAccountType.java

请注意,支持 <EditSchema>标记在您的元数据中,这(我想)是无缝第 3 方集成的关键。

关于android - 用于编辑联系人的蜂窝同步适配器功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8343372/

相关文章:

android - 如何在android中修改来电和去电屏幕 View

c# - 如何以编程方式从 Windows 联系人中检索所有联系人的详细信息?

android - 插入新联系人时自动联系人聚合不起作用

Android 3.0 日历 View

android - 当我弹出 BackStack 时,自定义 fragment 过渡动画无法正确播放

java - 下载文件时无法更新循环进度条

android - 在 Android Studio 中 merge 或 rebase 或分支默认值?有什么区别?

android - FFMpeg:在视频创建过程中添加背景图片

ios - 搜索栏搜索号码,而不仅仅是联系人姓名

android - 安装 .apk 文件问题