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 - Multiple Threads, one handler

Multiple Threads, one handler

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Multiple Threads, one handler

Postby redviking63 » Mon Jan 23, 2012 9:08 am

Hi,
New to Android here. I have an application which needs to use several threads for various tasks. Most of those tasks will result in an update to the UI. I have read many tutorials on threading and understand the use of the handler to update the UI and I have this working for the first of my threads. However, I am wondering if it is common/best practise to use a separate handler for each thread OR to pass the same handler to each thread and use msg.what (for example) to determine which thread is sending the message an update the UI accordingly.

Thanks
Roy
redviking63
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 24, 2010 10:51 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests