Book Image

Windows Phone 7 Silverlight Cookbook

By : Jonathan Marbutt, Robb Schiefer
Book Image

Windows Phone 7 Silverlight Cookbook

By: Jonathan Marbutt, Robb Schiefer

Overview of this book

Silverlight has revolutionized development using Microsoft technologies. It is an excellent tool for mobile application development. The XAML-based markup and familiar C# code are the perfect combination for building apps efficiently and with minimum hassle.Packed full of recipes containing comprehensive instructions for the tasks required to build modern compelling smartphone apps using Silverlight.Starting with application design and architecture, you will quickly move on to more technical features and APIs you can implement to make your app stand out. You will use the Camera API to scan barcode, location services to pinpoint the user’s GPS coordinates and accelerometer to provide feedback based on movement of the phone. All of these features can be provided in a slick user interface through the power of Silverlight. Animations, behaviors and XAML provide all you need and more.
Table of Contents (18 chapters)
Windows Phone 7 Silverlight Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring capabilities


Through the various chapters of this book, you have seen the different capabilities of Windows Phone. Some of these capabilities are considered potentially sensitive such as the GPS and other location services, the microphone, push notifications, and so on. Microsoft has provided a recognition and approval system of these capabilities for end users. The goal of which is to properly inform users of the capabilities of the app and if they do not approve, allow them to cancel installation or close the app.

In this recipe, we will cover how to configure the application's declared phone capabilities and handle some of the certification requirements for using the push notifications capability.

Getting ready

Open the Oahu Surf Updates solution from Chapter 7.

How to do it...

Open the WMAppManifest.xml file located in the properties folder of the Windows Phone Application project:

  1. 1. Find the Capabilities node. Comment out all the child nodes except ID_CAP_NETWORKING and ID_CAP_PUSH_NOTIFICATION...