Book Image

Windows Phone 7.5: Building Location-aware Applications

Book Image

Windows Phone 7.5: Building Location-aware Applications

Overview of this book

Windows Phone 7.5 has met with some great initial reviews from all mobile critics. It is poised to be the '3rd' eco-system for mobile, joining Apple's iOS and Google's Android platform. With Microsoft and Nokia working on multiple devices based on Windows Phone, the platform is a no-brainer enterprise success. Microsoft Office, Email, Skype and a fresh new mobile operating system has been a great champion of a cause for both Microsoft and Nokia. "Windows Phone 7.5: Building Location-aware Applications" will teach you to divein to the new Windows Phone Experience. No more 600 page bibles - just the right mix of text and lots of code to get you started!"Windows Phone 7.5: Building Location-aware Applications" covers location based services and maps, and focuses on methods of location detection and maps. Powered with this information, two real-world applications are covered. In short, this is a concise book on building location aware apps for Windows Phone.
Table of Contents (11 chapters)
Windows Phone 7.5: Building Location-aware Applications
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Consuming the Patch News API — HelloNews


Having had a detailed look at the Patch News API, let us fire some code to consume it:

  1. 1. Start Visual Studio 2010 Express and create a new Windows Phone Application named HelloNews.

  2. 2. Download the MD5Managed class from http://archive.msdn.microsoft.com/SilverlightMD5, and add it your solution using the Solution Explorer's Add | Existing Item option.

  3. 3. Download the Json.NET library from codeplex.com at http://json.codeplex.com/; extracting it creates the Json45r7\Bin\WindowsPhone directory which contains the files we need. We will use this library to parse JSON within our example application.

  4. 4. Add the Json.NET library to your solution as a reference by browsing to the directory where you have downloaded the library; see the following screenshot:

  5. 5. Import System.Device.Location, System.Text, System.Diagnostics, Microsoft.Phone.Tasks, Newtonsoft.Json, and the Newtonsoft.Json.Linq namespaces as shown in the following code snippet within your MainPage...