Hi all,
I am using the RMobileONStore API to get the MISDN on my device. However I am encoutering problems.
I am using the following code: (http://wiki.forum.nokia.com/index.ph...n_phone_number) to try to retrieve my MIDDN. I have the necessary access to the Binary access kit. However when I get to the section:
if(status.Int() == KErrNone)
{
CheckCapabilities(ownStoreInfo.iCaps);
if(ownStoreInfo.iUsedEntries < 1)
{
console->Printf(_L("No entry found.\n"));
User::Leave(KErrNotFound);
}
}
else
{
User::Leave(status.Int());
}
the application leaves with a KErrPermissionDenied.
Originally I had thought that this was a Permissions issue but after looking up the documentation I see that the APi requires ReadUserData permission which I have.
I am now thinking that it is the TSY that is retruning this error as it does not support the functionality. I am working on an N73 device.
Has anybody else seen this problem or managed to resolve it? I am particularly interested in the S60 third edition paltform.
Could anyone explain more about how this API works. Does it look for the MISDN on the SIM card or does it request it on the network. If it looks on the SIM maybe my problem is that the SIM card I am using does not have the MISDN on it.
If it requested from the network then then could you be guarnteed that this API will retrieve it for all networks? Perhaps it is dependant on the operator?
All help appreciated.
~b



