1. Download our Official Android App: Forums for Android!

Apps Listener for Contacts API

Discussion in 'Android Development' started by sem_thesis, Apr 3, 2011.

  1. sem_thesis

    sem_thesis Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Apr 3, 2011

    Apr 3, 2011
    3
    0
    5
    Helluu there! :D


    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 :)
     

    Advertisement

Share This Page

Loading...