This tutorial shows you how to create and send an event using the PIM API. The example developed in this tutorial is an application for sharing a particular event with other users.
The application will provide the means to build an event, serialize it as vCalendar, and send its contents as a message to another device, perhaps obtaining its number from the contact list. It will also add it to the local event database. The message is sent in a Short Message Service (SMS) with the Wireless Messaging API, making use of the serialization facilities provided in the PIM API. The example is deliberately simple; a real-world application should include features such as conflict resolution and acknowledgments. Also note that, in general, all exceptions, when caught, are simply displayed to the user instead of giving a user-friendly message.
Note: All files in this example application contain the Nokia copyright statement.
The example is also provided on Forum Nokia. Instead of creating the example from scratch as shown in this document, you can download the example files and run them immediately with your SDK.