Time of last modification of a contact on Android

I need to get the last change time of a contact: I am trying to use ContactsContract.Contacts.CONTACT_STATUS_TIMESTAMP, but in my emulator it always returns 0. Any hint?

+2


a source to share


1 answer


See the following post: The last time a contact was changed - you can check the "DIRTY" flag, which indicates if the contact was changed before it was synced to a Google account.



Depending on your needs, you can also cache ContactsContract.Contacts.Entity.VERSION yourself and compare it to the current values ​​in the database.

0


a source







All Articles