views:

17

answers:

0

locationManager = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER); Geocoder geocoder = new Geocoder(context); List myLocation = null; try { myLocation = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(), 1); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }

The log is below:

LocationMasfClient: reverseGeocode(): GLS failed with status 20

I can not find the reason.