concept sample application in category android
appears as: sample application, sample applications, sample application, sample applications, The sample application

This is an excerpt from Manning's book Android in Action, Third Edition.
Figure 1.7 shows the sample application in action. Someone looked up the address of the White House; the result shows the White House pinpointed on the map.
Table 17.1. Various AppWidget deployment patterns
Description
Additional application components
Example
AppWidget standalone Singleton. No configuration options. No Activity required. May use a Service to process a longer-running request in some implementations. Power Control. AppWidget as smart shortcut Used to present information, and upon a click loads an Activity. Email widget showing the number of messages in an inbox or upcoming events in a calendar. AppWidget with specific static data Configuration required. Variable amounts of data associated with each widget instance. PictureFrame widget showing a user-selected image from the gallery. AppWidget with dynamic data Configuration required. Variable amounts of data associated with each widget. Service used to update data. BroadcastReceiver used to respond to alarm invocations or other triggers that prompt updates at various times. News application widgets. The sample application from this chapter, SiteMonitor, demonstrates this pattern.