4

Can anyone say why the documentation for the getNetworkOperator function of TelephonyManager states that this can return unreliable result for CDMA ?

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 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 ?

Muzikant
  • 8,070
  • 5
  • 54
  • 88

2 Answers2

1

I know this is an old question, but maybe is useful to other people.

I don't know what returns from some CDMA networks, but i believe will be a "null" for sure.

You can get the MCC from getSimOperator().

Hope this helps.

Sulfkain
  • 5,082
  • 1
  • 20
  • 38
  • Thanks for your answer, but truth is that so far looks like this is working pretty good which makes me even more suspicious about the comment in documentation.. – Muzikant Oct 13 '13 at 05:50
0

It is unreliable because it can be kind-of spoofed on cdma networks. You can get actual operator names like Verizon Wireless but you may also get strings like HOME, CRICKET, SCHOOL etc.

A.J.
  • 1,520
  • 17
  • 22