我有两个设备。一种是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)
位置选项卡