1. False. App Widgets can reside within an application that implements an AppWidgetHost object.

2. B. Both Button and ProgressBar can be used, but not WebView.

3. True. Each cell is typically defined as 74 pixels, but when adding up the number for multiple cells, 2 pixels are subtracted. Thus, 2 cells wide would be (74x2) - 2, or 146 pixels.

4. A. An App Widget runs in another process so must be responsive to requests. A thread can't be used because it might be killed when the App Widget returns. Therefore, a service is started to perform background processing.

Was this article helpful?

0 0

Post a comment