1
locationManager = (LocationManager)context.getSystemService(context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);
Geocoder geocoder = new Geocoder(context);
List <Address> myLocation = null;
try {
myLocation = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(), 1);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
LocationMasfClient: reverseGeocode(): GLS failed with status 20
我找不到原因。