×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    23

    in contacts: when a person has more than one contact no

    Hi,

    which API and from which class should i use to display the multiple no. for any contact...


    problem is like this...

    suppose somebody has more than one contact nos......
    when a call is to be made, and u opt that person.... then in general all the no. is displayed that on which no. u want to make the call...

    to accomplish this task.... which api should i use...
    or
    if you have some code... please attach or forward at:

    devesh@winfoware.com

    thanx in advance
    devesh

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: in contacts: when a person has more than one contact no

    hi devesh,
    write ur problem clearly i didnot know wht u mean by two contacts .u mean phone number and mobile number and it chooses mobile number by default ok.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    339

    how to get all contacts numbers saved under one contact?

    I am accessing phonebook database of the mobile device. I can access contact number if there is single entry in particular group. if there is multiple contact numbers saved in one contact(like mobile, mobile(home), mobile(business)), i can only access contact number of mobile but can not access mobile(home) or mobile(business). how can all the numbers be accessed from the application? Thanks for any help

  4. #4
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: how to get all contacts numbers saved under one contact?

    CContactItem::CardFields() will return the set. Going though the set gives you all the numbers:
    while ((pos = fieldSet.FindNext(KUidContactFieldPhoneNumber,pos)) != KErrNotFound)
    {
    CContactItemField& itemField=fieldSet[pos];
    TPtrC num = itemField.TextStorage()->Text();
    ...
    }

    /0

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    339

    Re: how to get all contacts numbers saved under one contact?

    Thanks for replying this .I was able to do this using CPbkContactEngine and related classes.

  6. #6
    Registered User
    Join Date
    Jul 2011
    Posts
    27

    Re: how to get all contacts numbers saved under one contact?

    Can give me idea how you did this? I want to do same thing. I want to show all phone numbers saved in one contact in dialog like phone shows.

Similar Threads

  1. How to get all contacts information
    By Jick in forum Symbian
    Replies: 4
    Last Post: 2010-07-20, 18:25
  2. how to delete all files under one folder
    By liuxingyu_best in forum Symbian
    Replies: 3
    Last Post: 2008-11-15, 09:08
  3. Replies: 1
    Last Post: 2004-05-10, 12:03
  4. How to get all phone numbers ?
    By comb in forum Symbian
    Replies: 2
    Last Post: 2003-07-22, 08:32
  5. Replies: 1
    Last Post: 2002-12-09, 09:32

Posting Permissions

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