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
[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 - Some questions about services

Some questions about services

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

Some questions about services

Postby phate » Wed Aug 08, 2012 4:17 pm

Hello, I'm trying to do a periodic service but I have some questions, as it's my first time doing something like this

1)Basic service code would be:
Code: Select all
while(true){
//do operations
//sleep for n seconds
}


in order to stop it, do stopService() call make me exit from that loop?And is this the right way to do a periodic service?

2) As service job is very long android doc suggests to use a serviceIntent or create a thread in the service itself: what's the difference?And what is the best choice?

3)What is the best way to pass to service a LONG data list?
phate
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Aug 08, 2012 4:12 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests