Chapter 9Contacts and Calendars

  • Mastering the address book
  • Managing contacts
  • Calendar events and tasks
  • Alarms and recurring events

The wrox.com code downloads for this chapter are found at www.wrox.com/go/professionaltizen on the Download Code tab. The code is in the Chapter 9 download and named according to the names throughout the chapter.

In this chapter you’ll learn how Tizen supports two of the most essential features of a mobile device: contacts and calendars. The W3C APIs don’t provide the functionality to manipulate address books, contacts, and calendars, but Tizen web application developers can use the Contact and Calendar Device APIs to use these features in their applications.

You can write web applications to add, update, delete, and search for contacts in any of the device’s address books, set up events and tasks in the calendar, create recurring events and alarms, and import and export in standard formats, such as vCard for events and iCalendar for calendar items. All of this, together with a lot of sample code, is included in this chapter.

SETTING PRIVILEGES

Accessing the address book and calendar on a device involves reading and writing the user’s private data, and as such this functionality is protected by privileges. To use the Contact API to read from and write to address books, you need to add the following privileges to your config.xml file:

Get Professional Tizen Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.