Talk:How to get my own phone number using Symbian C++
Vinnitu2 - Which code I can use?
I have C7-00 with Anna.
Which code I can use to retrieve own phone number?
I try integrate this snippet in my Qt application like:
telServer.EnumeratePhones(n); // in my case it is 1;
TBool isSupported = EFalse;
telServer.IsSupportedByModule(tsyName, KETelFuncMobileOwnNumberStore, isSupported); // in my case it is True
// in my case status is KErrPermissionDenied - "an operation cannot be performed due to a potential security violation"
Why KErrPermissionDenied? What is the proper way to get phone number?
PS: to simplify i don't show check resultPSS: lets make fully working snippet!
vinnitu2 16:41, 10 November 2011 (EET)
Hamishwillee - @Vinnitu2KErrPermissionDenied means that you don't have the right capabilities in your .Pro file. Probably NetworkServices, but it might be ReadDeviceData. If it were me, I'd try using CTelephony option first.
hamishwillee 06:17, 17 November 2011 (EET)