On Wed, Feb 23, 2011 at 5:06 PM, Jake Colman <[email protected]> wrote: > So although a service would work from the perspective of off-loading > work from an appwidget, it's still doing it off-loaded work in the same > thread? So in what sense is it off-loaded from the appwidget?
If you don't use an IntentService, and you don't fork a thread, it's not really "off-loaded from the appwidget" in any meaningful sense. > I've converted my Service class to an IntentService, moved all my > logic into the onHandleIntent() method, and moved my state variables > into the default shared preference. All the pieces seem to be working > but, much to my surprise, RemoteViews updated by the IntentService is > NOT being painted on my screen! It should be. It certainly works elsewhere. http://developer.android.com/resources/samples/Wiktionary/index.html https://github.com/commonsguy/cw-andtutorials/tree/master/25-AdvWebKit/Patchy > Is there something different about Context when using an IntentService > in place of a Service? No. > My original code used the 'this' as the context > and passed that to construct the RemoteViews. Do I need to do something > different now that I am using an IntentService? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

