Last contact changed

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.

+3
source share
3 answers

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.

+4

, , ... calked CONTACT_LAST_UPDATED_TIMESTAMP, : https://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns.html

( ), . , , . ( ) .

: "contact_last_updated_timestamp"

+3

ContactsContract.Contacts.Entity.VERSION ( , ), Android.

+1

Source: https://habr.com/ru/post/1749198/


All Articles