问题
Code:
Geocoder geocoder = new Geocoder(map.this,Locale.getDefault());
List<Address> list = geocoder.getFromLocation(geoLat, geoLng, 1);
Exception:
java.io.IOException: Unable to parse response from server
What am I doing wrong?
回答1:
This kind of error shows up when the GPS is not active. Since the emulator doesnt have a GPS hardware, similar exception can be thrown. Cant say for sure unless you post more detail about the problem.
来源:https://stackoverflow.com/questions/6754817/geocoder-error-java-io-ioexception-unable-to-parse-response-from-server