0

I am creating an App in which in a part i have to regularly check contacts. But It would be nice if I get Notify, Whenever any Contact Get Added, Deleted or Updated in the Contacts Database of Android or Any Contact Event Occurs. Is there a way to do that and Can i get those Changes?

Even if i don't get those changes its still OK but i wanna get notify that something has changed in Contact Database.

I tried but don't find any solution.
Nabin
  • 11,216
  • 8
  • 63
  • 98
Mohit
  • 2,189
  • 4
  • 22
  • 40

1 Answers1

0

Implement a BroadCastReceiver and send Broadcast in the onChange method of ContentObserver targeting this receiver.

Extend ContentObserver class

See here for more

Community
  • 1
  • 1
Nabin
  • 11,216
  • 8
  • 63
  • 98