Header Sep
Symbian OS Tips, Tricks & Code
My Rating Score
Login to rate page

April 2005
Working with a contacts database in UIQ smartphones

[Back]

Symbian OS applications can access and use contact information that is stored in a contacts database using an easy to use API. This API includes functionality for reading the number of contacts, accessing each unique contact record and updating, adding or removing contacts.

The contacts database contains the contact items. There can be a couple of such databases, but one is always set as the default and is the one shown in the Phonebook.

The following application shows examples of working with contacts, and the most basic and common functionality. More advanced features can be implemented.

Download contact database example>>

To build the DbContacts example for the smartphone, use the following:

$ bldmake bldfiles
$ abld build thumb urel
$ makesis DbContacts.pkg

List all records in the contact database
Contact records are arranged by their surname and first name. It is also possible to view all information for a particular contact.

    

Create new contacts as well as delete contacts
You can create new contacts by including the following information: first name, surname, phone number and mobile phone number. Existing contacts can be deleted.

    

Adding additional fields to a particular contact
You can choose a label, text and which UID to be used for the new field.

   


More information about contacts can be found in the UIQ 2.1 SDK at: UIQ 2.1 SDK / Developer Library / API Reference / C++ API reference / Contacts Model.

 

My Rating Score
Login to rate page