Android contact programmed sync

萝らか妹 提交于 2019-12-06 09:32:02

问题


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.



来源:https://stackoverflow.com/questions/3370544/android-contact-programmed-sync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!