Hmm yeah,.. im trying to make a simple widget now and adding more
stuff.

However maybe this output from LogCat also helps:


07-14 15:57:58.845: ERROR/ActivityManager(59): ANR in
com.hyves.android.application
07-14 15:57:58.845: ERROR/ActivityManager(59): Reason: Broadcast of
Intent { act=android.appwidget.action.APPWIDGET_UPDATE
cmp=com.hyves.android.application/
com.hyves.android.widget.HyvesWidgetProvider (has extras) }
07-14 15:57:58.845: ERROR/ActivityManager(59): Load: 2.37 / 0.97 /
0.49
07-14 15:57:58.845: ERROR/ActivityManager(59): CPU usage from 476365ms
to 80ms ago:
07-14 15:57:58.845: ERROR/ActivityManager(59):   system_server: 4% =
3% user + 0% kernel / faults: 14885 minor 282 major


On Jul 14, 3:27 pm, Kostya Vasilyev <[email protected]> wrote:
> Mark,
>
> AFAIK, all UI methods are supposed to be called from the UI thread, are
> widget calls an exception to this rule?
>
> -- Kostya
>
> 14.07.2010 17:12, Mark Murphy пишет:
>
>
>
>
>
> > On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyev<[email protected]>  wrote:
>
> >>  From what thread are you ultimately calling
>
> >> AppWidgetManager.updateAppWidget
>
> >> ?
>
> >> It has to be the UI thread, I think you should check to make sure.
>
> > No, it doesn't. I have a few examples where updating the app widget
> > from any thread is fine, such as the one I linked to earlier:
>
> >http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/Micr...
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to