Any AppWidgetHost-tutorials out there?

2019-07-28 02:42发布

问题:

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.