Sync with Android Contact

I have set up an account manager for my application, which synchronizes contacts with my cloud service on the device. The account is displayed in the "Accounts and sync" section along with other such accounts (Google, FB, ...). After logging in, synchronizes web contacts with your device. Contacts are associated with this account. They are added using batch operations using an example from the Android developer web page.

The problem that I am facing is that after synchronization the contacts can be edited, but the user can only edit the name (I also transfer mail and phone numbers). The sync adapter has the property

android:supportsUploading="true" 

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

I would really appreciate help, as he had been listening to me for several days.

+3
source share
1 answer

Good,

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

+3
source

Source: https://habr.com/ru/post/1500123/


All Articles