Preface
Windows Phone 7.5: Building Location-aware Applications, introduces you to the exciting new world of Windows Phone 7.5. This book focuses on location-based applications, by introducing the readers to location-based services and the background thereof, coupled with practical examples for the Windows Phone location services. Another important discussion in the location context is maps, which is covered in great detail, including concepts such as geocoding and map directions.
This book will quickly teach you how to build Windows Phone 7.5 applications by leveraging location, maps, and third-party APIs. Two real-world applications are covered in depth: one using the excellent Events API from Eventful.com, and the other application, which focusses on location-aware news content powered by AOL's Patch.com News API.
What this book covers
Chapter 1, The Location-based World, explains location-based services, how they work, the important role of GPS in location-based services, and how Microsoft uses them in Windows Phone.
Chapter 2, Using Location in Windows Phone 7.5, starts with an introduction to the Windows Phone ecosystem and later on covers in-depth information on the Windows Phone Location Service and the Windows Phone location simulator.
Chapter 3, Using Maps in your Windows Phone App, introduces the reader to the world of Bing Maps; from working with a simple maps application to building a complex maps app with geocoding, directions, and local search.
Chapter 4, Events App — PacktEvents, covers building an events app that shows us nearby events, concerts, and gigs by artists by using the excellent Eventful.com API. The Windows Phone Panorama control is used to build this app.
Chapter 5, Location-aware News App — PacktNews, uses the Windows Phone Pivot control to build a hyperlocal news app—powered by AOL's Patch News API.
What you need for this book
To run the examples and the apps provided in the book, you will need a Windows PC with Windows 7 or higher and Microsoft Visual Studio 2010 Express for Windows Phone.
Some examples will need an API key from Eventful.com and Patch.com; the links are duly mentioned at the beginning of the chapters having such examples.
Who this book is for
If you are a developer who wants to develop apps for the Windows Phone 7.5 platform, but do not know where to begin, then this book is for you. Developers working on the Android and iPhone platform wishing to port their apps on the Windows Phone ecosystem will also find this book useful. The example code files and apps present in the book can also help a non-developer, such as a smart business or sales person, to quickly analyze and build new applications.
This book is also aimed at managers and architects in the news and entertainment industry, as two giants of this industry (Eventful.com and Patch.com) are mentioned extensively within the book.
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The main class that handles Location Service is the GeoCoordinateWatcher
class."
A block of code is set as follows:
latitudeText.Text= locationManager.Position.Location.Latitude.ToString("0.000"); longitudeText.Text = locationManager.Position.Location.Longitude.ToString("0.000");
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<Button Content="Start" Height="72"
HorizontalAlignment="Left" Margin="0,35,0,0"
Name="startButton" VerticalAlignment="Top" Width="160"
Click="startButton_Click" />
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Open Visual Studio 2010 Express and create a new project by clicking on the File | New Project menu option.".
Note
Warnings or important notes appear in a box like this.
Note
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <feedback@packtpub.com>
, and mention the book title through the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <copyright@packtpub.com>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
Questions
You can contact us at <questions@packtpub.com>
if you are having a problem with any aspect of the book, and we will do our best to address it.