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() {
        public void run() {
                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) {

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


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 4 guests