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.
Error
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)
Location Tab