Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User amrok90's Avatar
    Join Date
    Jun 2011
    Posts
    43
    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 amrok90's Avatar
    Join Date
    Jun 2011
    Posts
    43
    So it actually gives no result for the numbers like "7898*" but for the others it works.

  3. #3
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    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 C++
    Replies: 15
    Last Post: 2008-01-09, 07:47
  2. CPbkContactEngine Help?
    By fathi El3ashery in forum Symbian C++
    Replies: 3
    Last Post: 2007-02-05, 13:25
  3. Contacts near lost (Please give me advice)
    By lordgergo in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2005-10-26, 12:25
  4. Is it a bug of CPbkContactEngine?
    By agirllikeyou in forum Symbian C++
    Replies: 0
    Last Post: 2004-08-13, 10:13
  5. How to use CPbkContactEngine ???
    By TrickLo in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 1970-01-01, 02: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved