Wednesday, March 14, 2012

[android-developers] Re: CDMA home carrier



On Friday, December 4, 2009 1:45:40 PM UTC-5, Ken H wrote:

But don't get me started on Android 2.0 and this CDMA stuff. Example:
the CdmaCellLocation has two methods (getBaseStationLatitude() &
getBaseStationLongitude()) which, judging from the name return the LAT/
LON of the site. Great, I'm thinking until I look at the datatype and
see that they are both INTs. Which, again, wouldn't be a problem if
they said, "To get the decimal value divide by 1,000,000", but they
don't. Another beautiful mystery is that onSignalStrengthChanged has
been depracated, but they don't state what the replacement is.

The CDMA latitude and longitude is an integer multiple of 1/4 seconds of arc (in other words 1/14400 of a degree).
If the value is 'not known' you get 0x7FFFFFFF instead.
On Android you can get see this value  directly by 'calling' *#*#4636#*#*
and then selecting 'Phone information > Signal Strength'.
Annoyingly, some carriers (e.g. Verizon Wireless) suppress this value so you don't know where the antenna is,
while others (e.g. U.S. Cellular) do provide it (and it is generally accurate to a few meters).
Also, femptocells must provide this value (even for Verizon Wireless) --- which is what they use the GPS receiver for.

Berthold

Ken

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment