阅读背景:

geocoder.getFromLocation函数抛出“超时等待服务器响应”异常

来源:互联网 

I am trying to get location of user by starting IntentService from MainActivity. Inside the service i try to reverse geocode the location inside a try block but when i catch the exception and print it says "Timed out waiting for server response" exception.But a few times I have got the location.so i think there is nothing wrong with my code.But it won't be useful if it throws exception 8 times out of 10.So can you suggest some thing to avoid this.I am trying to get location of user by starting




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: