I'm developing an android app for CDMA phones that will gather the latitude/longitude of the cell tower they are connected to.
First: is this even possible?
Second: I've looked at previous posts where it says to simply add "CellLocation.requestLocationUpdate();" but it didn't have any effect. Here's the portion of code where I'm trying to retrieve the locations...
CdmaCellLocation CdmaLocation = (CdmaCellLocation)telephonyManager.getCellLocation();
int Longitude = CdmaLocation.getBaseStationLongitude();
int Latitude = CdmaLocation.getBaseStationLatitude();
Looking at the code for the CdmaCellLocation class reveals that those values are defaulted to Integer.MAX_VALUE, but how do you actually set the latitude and longitude?