Google API getFromLocationName throws IOException
Nov
20110
If you are using the Google GPS API for Android you could encounter an IOException for “Service Not Available” , calling the method getFromLocationName() of the GeoCoder class.
This method should be able, given a location name, to retrieve an array of Address objects related to the specified string.
Sometimes the mehod works pretty good, but others the exception is thrown.
The Solution
Here there is a long discussion about the issue:
http://code.google.com/p/android/issues/detail?id=8816
On comment 21 there the workaround calling the web api directly and retrieving data using a JSON object.
Hopefully the google api for android will be fixed soon…











Commenti