Widget Preview Tool

We have briefly talked about how you can specify a preview image for a widget in the widget definition XML file (see Listing 25–2.).

The emulator provides a helper application that will capture a screen shot of your widget, which can be used later used as a preview image. As a developer, you can invoke this application by looking at the application list in the emulator and locating the widget preview application. This application allows you to choose the widget that you want to preview. Once you select the widget, the corresponding widget configurator (if available) kicks in. At the end, you see an instance of your widget. The widget preview application will then let you take a screen shot and will send you an e-mail containing ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.