摘要: 上文说到获取手机所在地的经纬度,那么有几种方式呢?通过GPS,network.而地位API中提供了LocationManager,以及Location。其中LocationManager用来获得位置服务,Location用来获取位置。具体代码如下:View Code private GeoPoint getGeoPoint(){ LocationManager locationManager=(LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location=location... 阅读全文
posted @ 2012-01-13 17:17 东子哥 阅读(6314) 评论(0) 推荐(2) 编辑