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());
[/CODE]
Could you please help me with this. Thanks.
Re: CPbkContactEngine give not contacts
So it actually gives no result for the numbers like "7898*" but for the others it works.
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.