Geocoder error java.io.IOException: Unable to parse response from server

Viewed 2027

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 Answers

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.

Related