gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 16:18:39 25 4
gpt4 key购买 nike

我正在开发同步适配器。我发现了这个: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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com