×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Exclamation ImportContactsL leave with KErrNotFound

    Hi All Experts!

    We are importing the VCard using ImportContactsL of CContactDatabase.
    The code is as follows:

    // Open the default contact database
    CContactDatabase* contactsDb = CContactDatabase::OpenL();
    CleanupStack::PushL(contactsDb);

    TBool iSuccessfulImport= EFalse;
    TUid p1;
    p1.iUid = KVersitEntityUidVCard;

    CArrayPtr<CContactItem>* imported = contactsDb->
    ImportContactsL(p1,iReadStream,iSuccessfulImport,CContactDatabase::ETTFormat);
    CleanupStack::PopAndDestroy(); // contactsDb
    The code works fine on 3650 n the contacts are getting imported successfully.

    But if I try to execute the code on 6600 ImportContactsL(--) leaves with KErrNotFound(-1)
    iSuccessfulImport is set to ETrue i.e at least one contact is successfully imported.

    After all this , it seems to lock the contact database. If I open my phone book, no contact can be seen untill I reset the device.

    I have tried possible combinations of TOptions and iReadStream is ok too.

    I am not getting the reason to leave ImportContactsL with KErrNotFound

    Experts plz guide.

    Thanks
    Regards,
    Shilpa Kulkarni

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    47

    Re: ImportContactsL leave with KErrNotFound

    Hi,
    My import is working fine the prob is that
    ->when i want to edit the imported items it shows all most all fields (about 40 fields) to edit .
    ->which is too much time consumig and my edit options become very slow

    do u have any solution ...
    thnx in advance.....

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    48

    Re: ImportContactsL leave with KErrNotFound

    Hai itsme,
    Iam also facing the same problem.My Application is working Fine.ExportSelectedContacts and ImportContactsL are working fine.But, in PhneBook when I try to Edit Contacts, its taking too much time to show all the contacts.How to solve this problem?If anybody aware of this proble, pls help me.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: ImportContactsL leave with KErrNotFound

    What are you two talking about?

    It sounds like you are saying the contacts UI is too slow to display a contact and its slow to edit the fields. If so why are you editing the contacts by hand? Why don't you edit them programatically?
    Is that's not the problem then what is it that is too slow?
    Last edited by hotcheese; 2008-01-29 at 20:32.

Similar Threads

  1. ImportContactsL Issues
    By Shilpa13 in forum Symbian
    Replies: 2
    Last Post: 2006-11-30, 10:23
  2. Memory Leak After Leave
    By gowthamyemme in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-02-23, 19:35
  3. After leave ?
    By sym_coder in forum Symbian
    Replies: 5
    Last Post: 2005-06-20, 19:07
  4. Replies: 3
    Last Post: 2004-04-20, 16:23

Posting Permissions

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