Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003

    S60 Contacts app to add contacts not working on device

    I compiled one of the sample apps in S60 rd edition SDK


    and installed it on my Nokia E62 phone.

    The app runs just fine on the emulator.
    But on the phone, only the 'read only' behavior is working, i.e
    I am able to only do the following:
    - open Default Contacts DB, which lists all my contacts on the phone

    Whenever I try to add or edit or delete a contact, the application just closes without any failure message or Panic.

    All the above things work just fine on the emulator.

    I have the following capabilities in the .mpp file

    Any ideas what could be going on. I even added a TRAP stmt to the line which calls "addContactL" and log the error, but that does not help.

    ////////////////////////// code snippet //////////
    TRAPD(err, cardId = iContactDb->AddNewContactL(*card);
    if (err != KErrNone )
    iLog.WriteFormat(_L("Failed adding the contact error code : %d"), err);
    iLog.Write(_L("Added the contact to db"));


    Some times after the write attempt, if I go to Addressbook, get messages like:
    Possible Database corruption
    Address book already in use.

    Any ideas what could I be doing wrong here.
    Is it possible that Addressbook app and this ContactDB app are having locking issue on the contacts.cdb file.

    Also where can i find the default 'contacts.cdb' file on the device.

    I am really out of ideas at this point, any pointers would be very much appreciated.
    Sometimes the

  2. #2
    Registered User
    Join Date
    Mar 2003

    Re: S60 Contacts app to add contacts not working on device

    forgot to mention, my phone is Nokia E62 which has Symbian OS v9.1

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2006
    Helsinki, Finland

    Re: S60 Contacts app to add contacts not working on device

    I think you are missing certain capabilities.

    Add WriteDeviceData and ReadDeviceData in your .mmp file and try it again.

    So it should be something like:
    CAPABILITY ReadUserData WriteUserData WriteDeviceData ReadDeviceData
    Nokia Developer Wiki Moderation team

Similar Threads

  1. Problems with signing app S60 with Netbeans 6
    By xchewy in forum Mobile Java General
    Replies: 3
    Last Post: 2008-03-13, 23:00
  2. Running serial midlets s60 3rd ed. on device
    By keithgardiner in forum Mobile Java General
    Replies: 0
    Last Post: 2007-08-14, 12:18
  3. Delete Contacts failed on 6600 device
    By b0ssY in forum Symbian
    Replies: 2
    Last Post: 2007-07-18, 10:08
  4. Carbide c++ and S60 3rd Edition Feature Pack 1 Working
    By jimgilmour1 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-10-18, 20:39
  5. S60 3rd Multi-language App question
    By ckasek in forum Symbian
    Replies: 0
    Last Post: 2006-07-25, 18:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts