×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    69

    Accessing Contacts from PhoneBook

    Hi All,

    I am using CCOntactDatabase API to retrieve the contacts from the phonebook. Problem is it takes a time to retrieve it. I am not able to understand, why this is happening? Is it that API itself takes a time? For 200 contacts, it takes around 40 seconds. Please help me out.

    Thanks in advance,

    Girish
    Girish_VMX

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Accessing Contacts from PhoneBook

    have you tied using CPbk* APIs like CPbkSingleEntryFetchDlg already.

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    69

    Re: Accessing Contacts from PhoneBook

    Hi,
    I used CPBk* API earlier, but it gives default listbox and check boxes to select contacts and it is pretty fast. But we dont have any control over that.
    In my application, i need to read contacts and display in the listbox with status icon. So that i used CContactDatabase API.

    Regards,

    Girish
    Girish_VMX

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Accessing Contacts from PhoneBook

    Actually you do not need to read every single contact in one step, since you display only 3-6 of them at a time. So you can use CountL-GroupCountL to estimate the size of the list, and read only a few contacts (which are needed to be displayed), the others can either be "faked" (empty descriptors in your list, and use Top/BottomItemIndex to track events, typically combined with OfferKeyEventL), or you can provide your own MDesCArray-implementation, fully optimized for dealing with contacts (this is more elegant, and probably easier too).

Similar Threads

  1. Accessing Contacts DB File
    By girish_gowda in forum Symbian
    Replies: 3
    Last Post: 2008-01-23, 18:41
  2. About Encryption of Contacts in PhoneBook
    By jennie in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-10-12, 07:45
  3. Accessing Phonebook engine
    By wirefree101 in forum Symbian
    Replies: 5
    Last Post: 2006-11-21, 17:01
  4. Hiding contacts from S60 Phonebook
    By AndyMonaghan in forum Symbian
    Replies: 1
    Last Post: 2006-05-25, 13:58
  5. Accessing the phonebook of 7210
    By SandroST in forum PC Suite API and PC Connectivity SDK
    Replies: 8
    Last Post: 2005-02-20, 15:36

Posting Permissions

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