摘要: 在Android中通过GPS获得当前位置,首先要获得一个LocationManager实例,通过该实例的getLastKnownLocation()方法获得第一个的位置,该方法的说明如下:void android.location.LocationManager.requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener)provider即定位方式,可以采用GPS定位(LocationManager.GPS_PROVIDER)或者网络定位(LocationM 阅读全文
posted @ 2013-12-25 22:22 MSTK 阅读(1520) 评论(0) 推荐(0)