-->
Home -> Android, Java -> Google API getFromLocationName throws IOException

Google API getFromLocationName throws IOException

8
Nov
2011
0

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…

Condividi:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MySpace
  • Technorati
  • Twitter
:,

Commenti

Lascia il tuo commento:

Cerchi qualcosa?

Usa questo form per cercare argomenti in questo blog:

Non riesci a trovare quello che cerchi? Lascia un commento in un post oppure contattami per risolvere il problema!

Puoi trovarmi su Twitter come @superbre