Friday, July 8, 2011

[android-developers] CDMA getCellLocation() does not work

Does anyone know why getCellLocation() for cdma will not return the
cell site locations? If I use:

TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
CdmaCellLocation cd = (CdmaCellLocation) tm.getCellLocation();
int cdmaLat = cd.getBaseStationLatitude();
int cdmaLon = cd.getBaseStationLongitude();

I get Integer.MAX_VALUE for both the cdmaLat & cdmaLon. Why? Has this
not been implemented yet in Android? If not, will it ever? Why is the
value an integer in the first place? LAT/LON should be a float or
double.

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