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. Scroll image like a WebView

I have a large image, and I'd like to scroll around it like you'd
scroll around inside a WebView.

This means horizontal, and vertical scrollbars.

Since ScrollView and HorizontalScrollView only have vertical, and
horizontal  scrollbars respectively, neither of these will do what I
want. Sticking a HorizontalScrollView inside a ScrollView doesn't
work, because the horizontal scroll bar disappears when you scroll up.

WebView scrolls exactly like what I want, but I don't want to display
a web page, just an image created dynamically. There has to be some
way of doing this without writing an entirely new class.

2. How to prematurely stop a long-running SQLite query?

You can't, the thread is down in the SQLite engine doing its work.

I would really look at why your queries are taking so long -- 30 seconds is
just insane.  For example, have you created indexes on the appropriate
columns for the query?

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. The MultiBubbles Online tournament has started. Win prizes while playing MultiBubbles on your Android device!

4. DDMS won't load (or doesn't parse?) KML file

5. Getting the user's own email address

6. You must supply a resource ID for a TextView

7. Andriod and Arabic language