I want to implement a BroadcastReceiver to listen if contact has been deleted/ updated. I read about ContantObserver but I have no idea how to run this in application background, like BroadcastReceiver.
How can I implement this? Is there any way to run ContantObserver in background of an application.
I followed this FAQ.
Implement a broadcaste Receiver and send Broadcaste in the
onChangemethod ofContentObservertargetting this receiver.. see this for using custom intents and broadcastes..