问题描述
任何人都可以说为什么TelephonyManager
的getNetworkOperator
函数的文档指出这对于CDMA可能返回不可靠的结果吗?
Can anyone say why the documentation for the getNetworkOperator
function of TelephonyManager
states that this can return unreliable result for CDMA ?
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).
在CDMA设备上调用此方法会得到什么样的结果?如果不可靠,如何获得CDMA设备的MCC?
What kind of results are you getting when calling this method on a CDMA device ?and if it's not reliable, How can I get the MCC for a CDMA device ?
推荐答案
我知道这是一个老问题,但对其他人可能有用.
I know this is an old question, but maybe is useful to other people.
我不知道某些CDMA网络会返回什么,但我相信肯定会是空".
I don't know what returns from some CDMA networks, but i believe will be a "null" for sure.
您可以从 getSimOperator().
You can get the MCC from getSimOperator().
希望这会有所帮助.
这篇关于为什么getNetworkOperator对于CDMA不可靠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!