,

Creating a Photos Extras Application

The Extras menu of the built-in picture viewer app allows you to add a link to your app so that the user can quickly launch your app from within the picture viewer. This effectively allows you to extend the picture viewer with your own app.

An Extras application may be used to enhance an image’s color, crop an image, convert an image to monochrome, or even read a photo’s Exchangeable image file format (EXIF) information to display where the photo was taken on a map.

For an example of an app that reads EXIF data, see the Photo Location app on the Windows Phone Marketplace. (Full disclosure: The app is written by my wife.)

When users tap the three dots on the application bar in the picture viewer, they see a menu containing a link to the Extras menu (see Figure 20.1).

Image

FIGURE 20.1 Users can activate a photo Extras application or a photo Share application.

Users selecting the Extras menu item see the list of apps that are registered as Extras applications (see Figure 20.2).

Image

FIGURE 20.2 The sample Extras application displayed in the Extras menu.

When a user selects your app from the Extras menu, your app is launched, and it receives an identifier (a token) that is used to retrieve the image from the phone’s image library.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.132.193