To create an App Widget, you need the following:
AppWidgetProviderInfo
object- Describes the metadata for an App Widget, such as the App Widget's layout, update frequency, and the AppWidgetProvider class. This should be defined in XML.
AppWidgetProvider
class implementation- Defines the basic methods that allow you to programmatically interface with the App Widget, based on broadcast events. Through it, you will receive broadcasts when the App Widget is updated, enabled, disabled and deleted.
- View layout
- Defines the initial layout for the App Widget, defined in XML.
Activity
that launches when the user adds your App Widget and allows him or her to modify App Widget settings at create-time.The following sections describe how to setup each of these components.
http://developer.android.com/guide/topics/appwidgets/index.html
No comments:
Post a Comment