O'Reilly logo

Windows® Phone 7 Application Development 24-Hour Trainer by Brian Faucher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 application

  • EmailAddressChooserTask: Launches the Contacts application and obtains the e-mail address of the selected contact

  • EmailComposeTask: Launches the E-mail application with a new message displayed

  • MarketplaceDetailTask: Launches the Windows Phone Marketplace client application and displays the details page for the specified product

  • MarketplaceHubTask: Launches the Windows Phone Marketplace client application

  • MarketplaceReviewTask: Launches the Windows Phone Marketplace client application and displays the review page for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required