Reputation: 1073
I need to know service center number to determine operator in my BlackBerry app. I've tried RadioInfo.getCurrentNetworkName()
method to get operator name directly, but the result is not proper for my case.
Is it possible to know this information ? Is there any other ways to determine user's operator ?
Upvotes: 0
Views: 178
Reputation: 4158
The methods GPRSInfo.getHomeMCC()
and GPRSInfo.getHomeMNC()
returns a numeric code for Country Code and Network Code for the Home network.
This will get the name (refer to this link):
RadioInfo.getCurrentNetworkName();
Edit :
String mcc = Integer.toHexString(RadioInfo.getMCC(RadioInfo.getCurrentNetworkIndex()));
Upvotes: 2