Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
abhishek92
Posts: 83
Registered: ‎12-02-2013
My Device: 9360 Curve
My Carrier: BSNL

How to get MCC and MNC codes for participent number in call logs?

Hello everyone,

 

I am fetching call logs from call log list, i want to get MCC and MNC codes for participent number in call logs, is this the correct way:

String countryCode = Integer.toHexString(RadioInfo.getMCC(RadioInfo.getCurrentNetworkIndex()));
String networkCode = Integer.toHexString(RadioInfo.getMNC(RadioInfo.getCurrentNetworkIndex()));

 

if this is not the correct way then please help....

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to get MCC and MNC codes for participent number in call logs?

My quick reading of your code suggests it will find te MCC and MNC for the phone that your code is running on.  is that what you want?

Please use plain text.
New Developer
abhishek92
Posts: 83
Registered: ‎12-02-2013
My Device: 9360 Curve
My Carrier: BSNL

Re: How to get MCC and MNC codes for participent number in call logs?

Thanks for your reply,

 

Actually i want to find value of MCC and MNC of a particular phone number like no is: +181001213458 is it possible?

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to get MCC and MNC codes for participent number in call logs?

I am not ware of a way of doing thta, moreover it could change if the user was moving. 

 

Why are you trying to find this information?  If we knew that, then perhaps we could suggest an alternative. 

Please use plain text.