On Wed, Jul 14, 2010 at 4:37 AM, TjerkW <[email protected]> wrote: > Basically i have an AppWidgetProvider which starts a Service on > update. That service starts a thread and at the end it updates the > widget by calling AppWidgetManager.updateAppWidget.
Turn the Service into an IntentService, and get rid of your own thread. IntentService gives you your work on a background thread automatically. See: http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/Microblog/ > But i get a NullPointerException? What am i doing wrong? The Service > is not in a different process.. That is impossible to say without seeing your code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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 [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

