Can I say why the documentation for the getNetworkOperator the TelephonyManager function indicates that this may return an unreliable result for CDMA?
getNetworkOperator
TelephonyManager
getNetworkOperator documentation
Availability: Only when user is registered to a network. Result may be unreliable on CDMA networks (use getPhoneType() to determine if on a CDMA network).
What results do you get when calling this method on a CDMA device? and if it is not reliable, how can I get an MCC for a CDMA device?
I know this is an old question, but maybe helpful to other people.
I donβt know what is coming back from some CDMA networks, but I think it will be βnullβ.
You can get MCC from getSimOperator () .
Hope this helps.
This is unreliable because it can be fake on cdma networks. You can get real operator names like Verizon Wireless, but you can also get strings like HOME, CRICKET, SCHOOL, etc.
Source: https://habr.com/ru/post/1379604/More articles:How can I make this git command alias? - gitSort unbound Comparable in Scala - scalaC # Backgroundworker and Twincat, How to fire a notification event inside a workflow - c #QML: how to destroy or stop working text in QML - qtHow can I create a dynamic emacs panel to automatically expand cursor / file / class information? - emacsDetection of periodic data from a telephone accelerometer - androidPreview graphic layout Eclipse - androidNo application icon - androidHow to write actual code from a nested class outside the main class - c ++Device Orientation Analytics - iosAll Articles