Listener for Contacts API

Put your problem here if it does not fit any of the other categories.

Listener for Contacts API

Postby sem_thesis » Sun Apr 03, 2011 1:53 pm

Helluu there! :mrgreen:

I'm currently working on a Service, which reads all Contacts and their attributes (like name, phononumber, email, organization etc.) and writes them into a database.

I want the querying and writing to be done 1) the first time in the onCreate() Method and then 2) the next time whenever there is a change in the contacts list.

Now, how do I register a change? What can I use as a trigger to start the service?

Another example: For writing call-logs I used the trigger variable called 'PHONE_STATE' in the TelephonyManager class. The variable changes whenever a new call is made or comes in.

Comments and suggestions are welcome :wink:
Posts: 9
Joined: Sun Mar 06, 2011 12:29 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests