Share via


Accessing Windows Phone 7 Devices

Version: 1.0.0

Description

The Windows Phone 7 is equipped with a Camera and GPS (global positioning system). Developers can leverage these devices to build location-aware applications and take live photos. This lab walks you through the steps required to integrate your applications with the phone camera. The goal is to build an application that lets you capture pictures, give them a title, and save them to the application local store.

Overview

The Windows Phone 7 is equipped with a Camera and GPS (global positioning system). Developers can leverage these devices to build location-aware applications and take live photos.

This lab walks you through the steps required to integrate your applications with the phone’s camera. The goal is to build an application that lets you capture pictures, give them a title, and save them to the application local store.

The lab also gives you the option to “fake” location and, when saving pictures to a local store, associate its latitude-longitude (lat-long) geo-coordinates, and create a view in which you can see the pictures on a map.

Objectives

At the end of the lab you will:

  • Be familiar with the Windows Phone 7 Camera Chooser API
  • Understand how to use the WP7 Location Device
  • Have saved pictures to the pictures hub
  • Have stored and loaded pictures and metadata from the Isolated Storage
  • Used Bing Maps control and services to fetch and display location data
  • Have created a simple map-based application with captured pictures

Prerequisites

The following is required to complete this hands-on lab:

  • Microsoft Visual Studio 2010 Express for Windows Phone or Microsoft Visual Studio 2010 (Microsoft Visual Studio 2010 Express for Windows Phone is part of the Windows Phone Developer Tools installation).
  • Windows Phone Developer Tools:
  • Active Internet Connection

    Note:
    If any of Microsoft.Phone.Controls.Toolkit or Microsoft.Expression.Interactions references are broken, you can remove them and add them again from the Assets folder which is part of this lab and can be found in <lab-folder>\Source\Assets\Libraries.

Exercises

This hands-on lab comprises the following exercises:

  1. Capture pictures using Camera Chooser
  2. Load and Store pictures
  3. Using Location device and Bing Maps

Estimated time to complete this lab: 60 minutes.