-->

Android contact programmed sync

2020-07-22 09:51发布

问题:

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.

回答1:

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.