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
private Handler handler = new Handler();
private Runnable runnable = new Runnable() {
@Override
public void run() {
RunEdt();
handler.postDelayed(this, 10000);
}
};
Update start
handler.postDelayed(runnable, 100);
I try to stop it ondeleted
public void onDeleted(Context context, int[] appWidgetIds) {
handler.removeCallbacks(runnable);
}
Any ideas?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment