Android的接触编程同步 [英] Android contact programmed sync

查看:139
本文介绍了Android的接触编程同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个客户经理为我的​​应用程序,联系人同步从我的云服务的设备。该账户显示了下帐户与与其他此类账户(谷歌,FB,...)同步。登录之后,可以同步网络接触到您的设备。触点被链接到该帐户。他们使用的是使用的例子来自Android开发者网页批处理操作补充说。

I set up an account manager for my application which syncs contacts from my cloud service to the device. The account shows up under Accounts & Sync along with other such accounts (Google, FB, ...). After logged in it syncs web contacts to your device. The contacts are linked to that account. They are added using batch operations using the example from the android developer webpage.

我现在面临的问题是,一旦同步的联系人可以编辑,但用户只能编辑名(我传递的电子邮件和电话号码也行)。该syncadapter拥有财产

The problem I'm facing is that once synced the contacts can be edited, but the user can edit only the name (I'm transferring email and phone numbers too). The syncadapter has the property

android:supportsUploading="true"

启用,但它只允许名称的编辑。如果该属性设置为false,在所有的接触无法编辑。

enabled, but it only allows editing of the name. If the property is set to false the contact cannot be edited at all.

我真的AP preciate一些帮助,因为它已经烦我好几天了。

I would really appreciate some help, since it's been bugging me for days now.

推荐答案

好了,

这么回答我的问题。你不能。您只能编辑的名字和照片,如果接触不是一个谷歌或Exchange联系人。

so to answer my own question. You can't. You can only edit name and photo if a contact is not a Google or Exchange contact.

这篇关于Android的接触编程同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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