开发者

Android contact programmed sync

开发者 https://www.devze.com 2023-01-09 18:52 出处:网络
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 开发者_如何转开发

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.

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"

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

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


Ok,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消