Get Updated Contacts in Android for Contact Sync -
i working on contact sync in android , have done first time contact sync.
here doing. 1. fetching contacts , saving each contact in db contact._id 2. fetching names , phone numbers , saving in db.
after sending contacts data server server can updated.
now problem how can check whether particular contact updated or not ?
i have implemented broadcast receiver app can intimated updation/addition/deletion of contact. want tract particular contact.
i found 1 solution dirty flag. tells contact whether updated or not, here reference link : http://developer.android.com/reference/android/provider/contactscontract.rawcontacts.html
but not able use dirty flag, please me implementing dirty flag.
thanks in advance !
the contacts should have value contactscontract.rawcontacts.version
.
if save version on server (or in database in app), can determine if contact has changed since last sent server.