机器人 - 地理coder.getFromLocationName是不工作的ICS设备 [英] android - Geocoder.getFromLocationName is not working in ICS device

查看:154
本文介绍了机器人 - 地理coder.getFromLocationName是不工作的ICS设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个设备。一个是 HTC wilfire小号并另一种是 HTC 1V 。我使用了地理coder.getFromLocationName()在我的应用程序。它是在 HTC野火S 成功运行。但在 HTC 1V 我得到了下面的错误。它为什么来?我怎样才能解决这个问题?请任何人可以帮助我。

I have two devices. One is HTC wilfire S and other one is HTC 1V. I used the Geocoder.getFromLocationName() in my application. It is running successfully in the HTC wildfire S. But in the HTC 1V i got the following error. why it's came? How can i solve this? please can anybody help me.

code

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)

地点标签

推荐答案

我终于找到了答案:的 HTTPS://$c$c.google.com/p/android/issues/detail ID = 38009

Finally i found the answer :https://code.google.com/p/android/issues/detail?id=38009

重新启动您的设备地理codeR工作。希望它可以帮助别人

Reboot your device for Geocoder to work. Hope it helps someone

请注意:有些人说这会工作,如果你使用谷歌API 16

Note: some say it will work if you use Google API 16

这篇关于机器人 - 地理coder.getFromLocationName是不工作的ICS设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆