Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    43

    CPbkContactEngine give not contacts

    Hello dear developers!
    I have this code. It gives empty result in spite there are contacts with specified phone number.

    Code:
    	RPbkViewResourceFile rfile (*CCoeEnv::Static());
    	rfile.OpenL();
    	CleanupClosePushL(rfile);
    	
    	CPbkContactEngine *contactEngine = CPbkContactEngine::NewL();
    	CleanupStack::PushL(contactEngine);
    	
    	CContactIdArray* contacts = contactEngine->MatchPhoneNumberL(aSelectedNumber,
    			aSelectedNumber.Length());
    Could you please help me with this. Thanks.

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    43

    Re: CPbkContactEngine give not contacts

    So it actually gives no result for the numbers like "7898*" but for the others it works.

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

    Re: CPbkContactEngine give not contacts

    I suppose its filtering the input for allowed characters, generally phone numbers only have +,w,t,0,1,2,3,4,5,6,7,8,9 characters, so * is not actually allowed, *# characters would be used in things like USSD messaging, which for end used does look like call, but indeed it is not a call.

Similar Threads

  1. about CPbkContactEngine
    By milandttp in forum Symbian
    Replies: 15
    Last Post: 2008-01-09, 08:47
  2. CPbkContactEngine Help?
    By fathi El3ashery in forum Symbian
    Replies: 3
    Last Post: 2007-02-05, 14:25
  3. Is it a bug of CPbkContactEngine?
    By agirllikeyou in forum Symbian
    Replies: 0
    Last Post: 2004-08-13, 10:13
  4. How to use CPbkContactEngine ???
    By TrickLo in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 1970-01-01, 01:00

Posting Permissions

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