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 - Threading , Handler and Activity Destruction

Threading , Handler and Activity Destruction

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Threading , Handler and Activity Destruction

Postby yacirhussain » Wed Feb 17, 2010 1:13 pm

Hi All!
I am not really an advanced android developer.. I am making an app which performs some image processing and that may take up to 5 minutes.. So I am using a handler and a thread in my activity.. during the processing, I show a Progress Dialogue..
I am posting messages through handler to update my UI. and upon completion, the progress Dialogue is hidden and some more options are visible on screen. Till here, Every thing is fine.. But when ever there is some event which leads to current Activity destruction, I loose the thread.. in fact the thread runs in background, and does fine without any problem.. but it don't update current activity object (after orientation change).

I wonder how to do get rid of that.. there are some blurred solutions in my mind but there must be a nice way to do it.

Using a service is an option.. but I wonder wont that create similar problem.?
yacirhussain
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Feb 17, 2010 12:58 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests