[android-developers] Re: AppWidgetManager#updateAppWidget behavior question

2011-08-01 Thread Brad
Oh wow, your Thread.sleep(500) trick seems to fix my problem as well. Unfortunately, it does not work 100% of the time. It appears that if I try to update the widget too quickly, the update not push. So it appears to be some timing issue, perhaps? I don't think that calling Thread.sleep() is ever

[android-developers] Re: AppWidgetManager#updateAppWidget behavior question

2011-07-29 Thread Padma
Even I am facing a similar issue with lists in appwidgets. And I haven't been able to find a solution till now. I tried using the notifyAppWidgetViewDataChanged(). This has fixed a few cases of the list not getting refreshed. But I am still getting the issue randomly. On Jul 28, 4:35 pm, Brad

[android-developers] Re: AppWidgetManager#updateAppWidget behavior question

2011-07-29 Thread Brad
Hey, thanks for the reply. Glad I am not the only one with this problem :-) So, I too thought of restructuring my code such that I would instead invoke notifyAppWidgetViewDataChanged(). Unfortunately I got the same results - the message was not pushed to the widget promptly. Although, after you

[android-developers] Re: AppWidgetManager#updateAppWidget behavior question

2011-07-29 Thread Padma
I found that calling updateAppWidget, followed by Thread.sleep(500) followed by notifyAppWidgetViewDataCjanged() is solving the problem. However I am not sure if it is the right thing to call sleep(). Any suggestions on this please. On Jul 29, 3:45 pm, Brad mcmanus.b...@gmail.com wrote: Hey,