首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

电顺手机通过基站获取gps

2012-09-01 
电信手机通过基站获取gpsTelephonyManager manager (TelephonyManager)getSystemService(Context.TELEPH

电信手机通过基站获取gps

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;

热点排行