Re: [android-developers] Two way contact sync

2016-08-20 Thread Sarthak Mittal
Hello Dmitri, I am learning about sync adapters and contact syncing. But i am unable to understand this scenario: Suppose, I update/delete a contact from the native app and the relevant flag(Delete or Dirty) gets set, now how can i be sure that whenever my sync adapter runs, the flags were not

Re: [android-developers] Two way contact sync

2010-06-17 Thread Dmitri Plotnikov
There is no conceptual difference between a one-way and a two-way sync. My understanding is that most people start the sync by sending local changes to the server and then get incoming changes. The DIRTY column on RawContact will tell you what changed locally. Make sure you reset the flag after

[android-developers] Two way contact sync

2010-06-17 Thread BeerBelly
Hey, I'm developing an application that needs a two way sync of its own custom contacts. I saw the sample code on Android developer website (talking about AccountManager here and the sample sync adapter code), but that only syncs from the cloud to the device. Is there a way to do the two way sync?