These features exist API level 5 onwards. You will receive Integer.MAX_VALUE if the location is not known.
BTW it was the second result on Google when searching for "android getBaseStationLatitude()". For future reference: http://www.google.com/ On Sat, Jul 9, 2011 at 12:11 AM, Ken H <hunt1...@gmail.com> wrote: > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://wiki.androidappcheck.com/ http://www.telstop.tel/ https://market.android.com/developer?pub=Raghav+Sood -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en