You are previewing Windows Phone 8 Recipes: A Problem-Solution Approach.
O'Reilly logo
Windows Phone 8 Recipes: A Problem-Solution Approach

Book Description

Windows Phone 8 Recipes is a problem-solution based guide to the Windows Phone 8 platform. Recipes are grouped according to features of the platform and ways of interacting with the device. Solutions are given in C# and XAML, so you can take your existing .NET skills and apply them to this exciting new venture.

  • Not sure how to get started? No need to worry, there's a recipe for that!

  • Always wondered what it takes to add cool features like gesture support, maps integration, or speech recognition into your app? We've got it covered!

  • Already have a portfolio of Windows Phone 7 apps that needs to be upgraded? We have a recipe for that too!

The book starts by guiding you through the setup of your development environment, including links to useful tools and resources. Core chapters range from coding live tiles and notifications to interacting with the camera and location sensor. Later chapters cover external services including Windows Azure Mobile Services, the Live SDK, and the Microsoft Advertising SDK, so you can take your app to a professional level. Finally, you'll find out how to publish and maintain your app in the Windows Phone Store.

Whether you're migrating from Windows Phone 7 or starting from scratch, Windows Phone 8 Recipes has the code you need to bring your app idea to life.

What you'll learn

  • Set up your development environment with the Windows Phone 8 SDK.

  • Upgrade your existing Windows Phone 7 apps to Windows Phone 8.

  • Meet and try out the new features provided in the Windows Phone 8 SDK.

  • Bring your apps to life with live tiles, notifications, and cloud services.

  • Discover the easy steps to setting up your own Windows Phone Store account.

  • Learn how to submit your apps for publication to the Windows Phone Store.

Who this book is for

Windows Phone 8 Recipes is for the developer who has a .NET background, is familiar with C# and either WPF or Silverlight, and is ready to tap into a new and exciting market in mobile app development.

Table of Contents

  1. Title Page
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Authors
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
  9. CHAPTER 1: Introduction to the Windows Phone SDK
    1. 1-1. Install the Development Tools
    2. 1-2. Create Your First Windows Phone 8 Application
    3. 1-3. Launch an App in the Windows Phone Emulator
    4. 1-4. Launch an App on a Windows Phone Device
    5. 1-5. Upgrade a Windows Phone 7.x app to Windows Phone 8
    6. 1-6. Become Acquainted With the Capabilities and Requirements in the Windows Phone Application Manifest
  10. CHAPTER 2: Multi-Resolution Support and Basic User Interface Components
    1. 2-1. Managing Resolution Dependent Assets
    2. 2-2. Dynamic Layout
    3. 2-3. Working with the Application Bar
    4. 2-4. Navigation
    5. 2-5. LongListSelector
    6. 2-6. Using the Windows Phone Toolkit
  11. CHAPTER 3: Gestures
    1. 3-1. Select The Right Action For Your App
    2. 3-2. Tap, DoubleTap, or (Tap-And-)Hold
    3. 3-3. Don’t Be A Drag, Just Flick It
    4. 3-4. Pinch to Zoom
    5. 3-5. Be Generous With Size and Considerate Of Space
  12. CHAPTER 4: Tiles and Lock Screen
    1. 4-1. Configure the Default Application Tile
    2. 4-2. Create a Flip Tile
    3. 4-3. Create an Iconic Tile
    4. 4-4. Create a Cycle Tile
    5. 4-5. Create a Secondary Tile
    6. 4-6. Create a Lock Screen Background
    7. 4-7. Lock Screen Notification Support
  13. CHAPTER 5: Background Agents and Local Notifications
    1. 5-1. Update the App Tile Using a Background Agent
    2. 5-2. Engage the User with a Toast (Notification)
    3. 5-3. Schedule Tile Updates Without a Background Agent
    4. 5-4. Download Video Using a Background Transfer Service
    5. 5-5. Schedule Reminders Within Your App
  14. CHAPTER 6: Appointments and Contacts
    1. 6-1. Save an Appointment
    2. 6-2. Retrieve an Appointment
    3. 6-3. Save a Contact
    4. 6-4. Retrieve a Contact
    5. 6-5. Create a Custom Contact Store
  15. CHAPTER 7: Camera, Photos, and Media
    1. 7-1. Access Photos from the User’s Media Library
    2. 7-2. Integrate Basic Photo Capture in Your App
    3. 7-3. Integrate Advanced Photo Capture in Your App
    4. 7-4. Register Your App as a Media-Sharing App
    5. 7-5. Enable Your Application to Play Background Audio
  16. CHAPTER 8: Maps, Location, and Routing
    1. 8-1. Using the Maps Task Launchers
    2. 8-2. Mapping the Current Location
    3. 8-3. Understanding Map Control Basics
    4. 8-4. Creating Map Overlays
    5. 8-5. Creating Routes and Directions
  17. CHAPTER 9: Communications and Speech
    1. 9-1. Send Data Between Devices Using Bluetooth
    2. 9-2. Send Data Between Devices Using NFC
    3. 9-3. Launch Your App Using Voice Commands
    4. 9-4. Incorporate Speech Recognition Within Your App
  18. CHAPTER 10: Launching and Resuming Apps
    1. 10-1. Preserve and Restore State
    2. 10-2. Enable Fast Application Resume Within Your App
    3. 10-3. Launch a Built-in Windows Phone 8 App from Your App
    4. 10-4. Launch Your Published Apps from Your Current App
  19. CHAPTER 11: Data Storage
    1. 11-1. Read from and Write Data to a Local File
    2. 11-2. Read Data from an SD Card
    3. 11-3. Store and Retrieve Data from a Local Database
    4. 11-4. Encrypt Data Using the Data Protection API
    5. 11-5. Store Application Settings
  20. CHAPTER 12: Windows Azure Mobile Services
    1. 12-1. Create a Mobile Service
    2. 12-2. Work with Data
    3. 12-3. Work with Server-Side Scripts: Validation and Access Control
    4. 12-4. Work with Authentication Providers
    5. 12-5. Work with Push Notifications
  21. CHAPTER 13: Using the Microsoft Live SDK
    1. 13-1. Install the Live SDK
    2. 13-2. Register Your Windows Phone App with the Live Connect Developer Center
    3. 13-3. Authenticate a User Within Your Windows Phone App
    4. 13-4. Manage the User’s Outlook Calendar Information
    5. 13-5. Download Files from the User’s SkyDrive
  22. CHAPTER 14: Publishing Your App
    1. 14-1. Monetize Your Application Using In-App Advertisements
    2. 14-2. Provide a Trial Version of Your App
    3. 14-3. Submit Your App to the Windows Phone Store
  23. Index