March 2016
Intermediate to advanced
428 pages
9h 2m
English
Before we dig in to the code for creating an App Widget, let's cover the basics. There are three required and one optional component:
AppWidgetProviderInfo file: It's an XML resource described later onAppWidgetProvider class: This is a Java classThe AppWidgetProvider must also be declared in the AndroidManifest file. Since the AppWidgetProvider is a helper class based on the Broadcast Receiver, it is declared in the manifest with the <receiver> element. Here is an example manifest entry:
<receiver ...