电信手机通过基站获取gps

dctrue 2011-04-27

TelephonyManager manager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
CdmaCellLocation cdma = (CdmaCellLocation) manager.getCellLocation();
int latint = cdma.getBaseStationLatitude();
int longint = cdma.getBaseStationLongitude();
double lat = ((double) latint)/14400.0;
double lon = ((double)longint)/14400.0;

相关推荐