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.


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -