Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Windows Phone 7.5: Building Location-aware Applications

You're reading from  Windows Phone 7.5: Building Location-aware Applications

Product type Book
Published in Jul 2012
Publisher Packt
ISBN-13 9781849687249
Pages 148 pages
Edition 1st Edition
Languages

Table of Contents (11) Chapters

Windows Phone 7.5: Building Location-aware Applications
Credits
About the Author
About the Reviewers
1. www.PacktPub.com
2. Preface
1. The Location-based World 2. Using Location in Windows Phone 7.5 3. Using Maps in your Windows Phone App 4. Events App - PacktEvents 5. Location-aware News App — PacktNews

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...

lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}