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 - Problem to stop handler in widget

Problem to stop handler in widget

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Problem to stop handler in widget

Postby GuiZ » Mon Jul 11, 2011 4:33 pm

Hi everyone,
i have a problem to stop and handler (i try also a timer i have the same problem) that i call in a widget. I try to remove callbacks but the hander doesn't stop.

Make handler
Code: Select all
private Handler handler = new Handler();

    private Runnable runnable = new Runnable() {
        @Override
        public void run() {
                RunEdt();
                handler.postDelayed(this, 10000);

        }
     };


Update start
Code: Select all
handler.postDelayed(runnable, 100);


I try to stop it ondeleted
Code: Select all
        public void onDeleted(Context context, int[] appWidgetIds) {
                handler.removeCallbacks(runnable);
        }


Any ideas?
GuiZ
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jul 11, 2011 4:27 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 2 guests