getNetworkCountryIso() unreliable on CDMA network (e.g., Verizon)?

by monkey.jsun » Thu, 19 May 2011 05:01:30 GMT

Sponsored Links
 Here is what Google web reference says:

public String getNetworkCountryIso ()
Since: API Level 1

Returns the ISO country code equivalent of the current registered
operator's MCC (Mobile Country Code).

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).

How unreliable is this function and what are the factors that make
this unreliable in CDMA? Is it the network operator (e.g., in one CDMA
network it will always, while it never work in another)? Or is it
related to a particular handset (one handset always works in any CDMA
work while another never works)?

Specifically can someone confirm or disconfirm where this function
works for verizon network?

There are a few other functions in the same shoe, such as
getLine1Number() etc.




Other Threads

1. Activity lifecycle and static variables ....

I just ran into a situation where it looks like a static variable
reference is persisted across activity sessions.  I didn't expect that
because I thought that when an activity exits, it's de-referenced and
garbage collected.

I am wondering if anyone can shed some (more) light on when the VM
eliminates object references for Activities and Services and in
particular when static variables get reset to default values?


Richard Schilling
Root Wireless


2. Activity lifecycle and static variables ....

Yeah, the process lifetime, which is outlined here:

On Tue, Jul 14, 2009 at 1:38 PM, Richard Schilling <

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. How to run the program on the new SAMSUNG GALAXY under windows XP

4. Wow. Why isn't the 1.5 emulator working...

5. PhoneFactory.getDefaultPhone from apps other than PhoneApp

6. EditTextPreference: Cannot edit text

7. Background of Home Screen widget