Jake, Some ideas on debugging:
- Verify the ComponentName for the widget that you use in the service. As in, set a breakpoint and look at the value in addition to logging. Create a "reference" ComponentName in the simpliest way possible, like in a simple widget that does its updates in onUpdate. Compare the two. - Verify that the list of widget ID's is identical between onUpdate and your service's widget updating function. - For the sake of debugging, forgo updating individual widgets, and push an update based on ComponentName, so it automatically affects all your widgets. - Double-check layout, view, and resource ID's used in the update vs. your resource files. 24.02.2011 1:31 пользователь "Jake Colman" <[email protected]> написал: >>>>>> "MM" == Mark Murphy <[email protected]> writes: > > MM> If you don't use an IntentService, and you don't fork a thread, it's > MM> 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! > > MM> It should be. It certainly works elsewhere. > > MM> http://developer.android.com/resources/samples/Wiktionary/index.html > MM> https://github.com/commonsguy/cw-andtutorials/tree/master/25-AdvWebKit/Patchy > > Any suggestion/pointers on how I can debug what's going on? Since this > was working code, I know that the basics are correct. There is no issue > with the service being destroyed before all my work is done? It's > legitimate to do all my work in onHandleIntent() and the service will > only self-stop ( call onDestroy() ) when all is completed? Or am I > misunderstanding the docs in some fundamental way. > > -- > Jake Colman -- Android Tinkerer > > -- > 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 -- 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

