问题
I'm writing an application that should both have the ability to place widgets on the home screen, and to show these widgets in the application itself. I figure that the best way to do this is through the use of an AppWidgetHost for the application part.
I've been looking around, but I cannot find any good examples on how to write AppWidgetHosts. Have any of you done this, and are willing to share? Or do you know of any tutorials that I've missed?
回答1:
Not exactly a tutorial but here is an older forum post.
The code is part of the mylock project, which you also might find useful if you dig.
来源:https://stackoverflow.com/questions/3894489/any-appwidgethost-tutorials-out-there