forum

Home / DeveloperSection / Forums / how to know if a contact is added, changed or deleted in android

how to know if a contact is added, changed or deleted in android

Allen Scott165816-Nov-2015

I am working on an application whereby I need to listen to changes in native contacts database like if a contact is edited/deleted or a new contact is added.

I know I can achieve this with the help of contentobservers. However I found it pretty strange that android SDK does not provide a way to know which contact is added/deleted or which one is changed. This results in a lot of manual work like traversing through entire contact list and checking which one is changed.

I want to know if there is any better way of achieving this. I know this question would have been asked many times but I want to know why Android SDK does not have such a mechanism in place?


Can you answer this question?


Answer

2 Answers

Liked By