Chapter 14. Using Microsoft.Phone.Tasks
In this lesson you will learn about using launchers to start one of Windows Phone 7's built-in applications to take pictures, send e-mail, start specified media files in Media Player, and more. You will also learn how to use Choosers to launch an application specifically to obtain the results of some type of user interaction with that application.
LAUNCHERS
Launchers enable you to start another program from within your program. Say you want to build an application that lists a set of videos that you wish to make available to the user; if the user selects a video from the list you want it to play full-screen in Windows Media Player. With the MediaPlayLauncher you can incorporate this functionality into your application.
The following is a list of launchers currently supported in Windows Phone 7, along with a brief description of each:
CameraCaptureTask:
Launches the Camera application to allow users to take a photo from your applicationEmailAddressChooserTask:
Launches the Contacts application and obtains the e-mail address of the selected contactEmailComposeTask:
Launches the E-mail application with a new message displayedMarketplaceDetailTask:
Launches the Windows Phone Marketplace client application and displays the details page for the specified productMarketplaceHubTask:
Launches the Windows Phone Marketplace client applicationMarketplaceReviewTask:
Launches the Windows Phone Marketplace client application and displays the review page for ...
Get Windows® Phone 7 Application Development 24-Hour Trainer 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.