Im calling it from the IntentService onHandleIntent method which should run in its own worker thread as the apidocs explain.
It works on the emulator. However on the Nexus One i get the nullpointer exception on calling manager.updateAppWidget ... See the stacktrace in a previous post. On Jul 14, 3:12 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyev <kmans...@gmail.com> 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... > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en