android - Geocoder.getFromLocationName() не работает на устройстве ICS

У меня два устройства. Один из них — HTC WildFire S, а другой — HTC 1V. Я использовал Geocoder.getFromLocationName()в своем приложении. Он успешно работает в HTC Wildfire S. Но в HTC 1Vя получил следующую ошибку. почему пришло? Как я могу это решить? пожалуйста, кто-нибудь может мне помочь.

Код

Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); 
//s is the address
List<Address> addresses = geoCoder.getFromLocationName(s, 5); //Here i got the following Exception.

Ошибка

06-18 16:28:17.933: W/System.err(4960): java.io.IOException: Service not Available
06-18 16:28:17.953: W/System.err(4960):at android.location.Geocoder.getFromLocationName(Geocoder.java:178)

Вкладка «Местоположение»

enter image description here

11
задан Talha 11 August 2016 в 12:07
поделиться