Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Description: I am using Google maps API V2.I have implemented Android Reverse Geocoding at touched location.

Problem: It throws exception on

 try {
     addresses = geocoder.getFromLocation(latitude, longitude,1);}
 catch (IOException e)
     {
     e.printStackTrace();
     if(AppConstants.DEBUG)Log.v(AppConstants.DEBUG_TAG," e.printStackTrace(): "+e.getMessage());
     }

I am receiving latitude and longitude values correct, but i can't understand why it throws exception and i have also done Google search but it couldn't help.

Can anybody please explain in details??

question from:https://stackoverflow.com/questions/16119130/android-java-io-ioexception-service-not-available

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
287 views
Welcome To Ask or Share your Answers For Others

1 Answer

As stated in this Android issue 38009 - Geocoder throwing exception: IOException: Service not Available Rebooting the Device will solve the problem


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...