java io ioexception unable to parse response from server geocoder

前端 未结 5 901
-上瘾入骨i
-上瘾入骨i 2020-12-16 01:33

I am using this code to get geographical addresses:

private String getAddress(Location location)
{
    try{
        List
addresses = new Geo
5条回答
  •  半阙折子戏
    2020-12-16 02:30

    I had the same problem with my Samsung Galaxy Tab 10.1. I search hours for a solution and nothing helped. To fix issues try following:

    Go to Location settings and enable:

    1.Use Wireless networks 2.Use GPS satellites

    wait for GPS location fix

    After this, geocoder server responded. Even when I disabled wireless and GPS Location, server was working. I think geocoder can only be used if you share your location with Google.

提交回复
热议问题