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 - Handler location for asynchronous operations?

Handler location for asynchronous operations?

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

Handler location for asynchronous operations?

Postby ParanoidAndroid » Wed Apr 08, 2009 9:51 am

I use handlers to display Toasts. These handler must be inside of an Activity, right?

Now I wonder what happens when I want to show that toast with a certain delay due to an asynchronous operation. E.g. I retrieve some details from a server and want to notify the user of the result. The activity could have been destroyed in the meantime and my toast cannot be displayed.
I could maybe use Notifications but I really do want to use toasts.

Is there any workaround? Do I need to keep at least one activity alive which the user must not close? However, the OS could still finish that activity.
ParanoidAndroid
Freshman
Freshman
 
Posts: 6
Joined: Fri Mar 20, 2009 2:46 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests