I need an efficient way to be alerted when the phone's contacts are changed.
Currently, I'm reading the contacts using ContactUtils (faster) and the Phone/Contacts (to get more info/fields).
I keep a Map with the ContactID and a Hash over the fields, and periodically I check for changes.
This process is very slow and resources consuming when you have more than 1000 or 2000 contacts.
Is there any way to monitor and get an event when something changes in the Contacts ?
I need an event driven way....
Thank You.
Currently, I'm reading the contacts using ContactUtils (faster) and the Phone/Contacts (to get more info/fields).
I keep a Map with the ContactID and a Hash over the fields, and periodically I check for changes.
This process is very slow and resources consuming when you have more than 1000 or 2000 contacts.
Is there any way to monitor and get an event when something changes in the Contacts ?
I need an event driven way....
Thank You.