Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Listener for Contacts API

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:
sem_thesis
Freshman
Freshman
 
Posts: 9
Joined: Sun Mar 06, 2011 12:29 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 8 guests