Geocoder.getFromLocationName() throws “Service not available” exception on Android 4 with Google Maps V2

后端 未结 2 1260
迷失自我
迷失自我 2021-01-16 12:17

The method Geocoder.getFromLocationName() throws the exception Service not available on Android 4.1, even if GooglePlayServicesUtil.isGoogleP

2条回答
  •  执笔经年
    2021-01-16 12:58

    Geocoder is not related to Google Maps Android API v2.

    You may want to use Google Geocoding API directly instead of Geocoder, which gives you limited amount of data and might be affected by device or Android version specific problems.

提交回复
热议问题