Chapter 4. Launching tasks and choosers

 

This chapter covers

  • Using the phone APIs
  • Launchers and choosers
  • Searching for contact data
  • Reading calendar appointments

A modern mobile phone does more than make phone calls. A mobile phone allows you to send SMS text messages and emails. Phone numbers and email addresses are stored in the phone’s contact list. Appointments and meetings are viewed using a calendar application. Music and videos are played from the phone’s media library. Don’t forget about the ever-present camera. Windows Phone developers access these mobile phone features via the Tasks and UserData APIs.

The Windows Phone security model doesn’t allow third-party applications to directly access the native applications and data stores provided by the operating system. Access to native applications is exposed through a variety of classes available in the Tasks API. Access to native data stores, specifically the contacts and calendar data stores, is exposed through the Contacts and Appointments classes found in the UserData API.

4.1. Tasks API

4.2. Launchers

4.3. Choosers

4.4. UserData APIs

4.5. Summary