Is there any way to find out when the contact was last changed? I can't seem to find a variable. The reason I'm asking is because I would like to sync contacts with my web server, and I don't want to check every contact with an HTTP request if it needs to be updated.
So, I was thinking of checking the date of the last update for the date of the last synchronization.
Did not find a way to do this. I can save the last synchronization date, but not check if the contact has been updated since then.
EDIT:
the contact has a DIRTY flag, which is set to 1 if the contact has been modified and not synchronized.
, , ... calked CONTACT_LAST_UPDATED_TIMESTAMP, : https://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns.html
( ), . , , . ( ) .: "contact_last_updated_timestamp"
( ), . , , . ( ) .
: "contact_last_updated_timestamp"
ContactsContract.Contacts.Entity.VERSION ( , ), Android.
ContactsContract.Contacts.Entity.VERSION
Source: https://habr.com/ru/post/1749198/More articles:Resetting style on elements with inherited style - cssRobots against parsley - flexproblems with extended classes and rewriting with methods - c #@key does not work in eclipse (Windows XP) - eclipseEntity Framework 4 executes stored procedures for an insert operation in the wrong order when a multilevel parent child relationship exists - entity-frameworkExcellent Python class decorator and maximum recursion depth - pythonbuild and analyze without working in my project - iphoneData structures using C or C ++? - c ++.NET Web Service - Unmanaged C dll call - c #Cannot find asp: text field in javascript - javascriptAll Articles