O'Reilly logo

Windows Phone 7.5: Building Location-aware Applications by Zeeshan Chawdhary

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

Windows Phone Location Service

Location information in your Windows Phone applications is managed by the Windows Phone Location Service, which allows you to use your device's Wi-Fi, GPS, or cellular network to determine location. As we discussed earlier, Microsoft lays strong emphasis on location, so much that it is a basic hardware requirement for all Windows Phones.

The main class that handles the Location Service is the GeoCoordinateWatcher class. Perform the following steps and make sure you import the DLL in your solution:

  1. Create a new Windows Phone Application project in Microsoft Visual Studio 2010 Express for Windows Phone by selecting the Visual C# template. Name it PhoneApp1 as shown in the following screenshot:
  2. Now select your project ...

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