如何利用地理codeR在Android 2.2的模拟器或Android 2.1设备模拟器、地理、设备、codeR

由网友(神明不渡我)分享简介:我需要使用地理codeR得到朗和纬度的地址使用地理codeR在Android SDK中2.2 .wen谷歌map.am工作不工作就抛出异常。如何利用地理codeR在我application.or可用其他方法来获得长期和纬度?I need to use geocoder to get lang and lat from...

我需要使用地理codeR得到朗和纬度的地址使用地理codeR在Android SDK中2.2 .wen谷歌map.am工作不工作就抛出异常。如何利用地理codeR在我application.or可用其他方法来获得长期和纬度?

I need to use geocoder to get lang and lat from address for google map.am working in android sdk 2.2 .wen using geocoder is not working it throw exception. How to use geocoder in my application.or any other methods available to get long and lat?

我有Android 2.1的设备。就是有没有可能在Android 2.1的实际deevice.I GE codeR工作,看到网页一个线程,因为它们在实际设备2.2.But提到地理codeR做工精细我不知道它会工作在设备2.1与否我检查,但在设备还GEO codeR不是working.any一个可以帮助我解决我的问题。

I have android 2.1 device .is there any possible to gecoder work in android 2.1 actual deevice.I saw one thread in web page in that they mentioned geocoder work fine in actual device 2.2.But i dont know it ll work on device 2.1 or not i checked but in device also geocoder not working.any one help me to solve my issues.

谢谢

Lakshmanan提供

Lakshmanan

推荐答案

的地理codeR可用性的问题无关的平台版本(2.1或2.2),和一切与是否库实现服务(如谷歌地图)可用。 (更多信息这里 - 搜索地图外部库)

The problem of the availability of Geocoder has nothing to do with the platform version (2.1 or 2.2), and everything to do with whether a library implementing the service (such as Google Maps) is available. (More information here - search for "Maps external library")

这里是页解释如何安装它在开发环境

请注意,虽然 - 你会做得很好,当你检测到地理codeR为提供某种未安装谷歌地图图书馆回落的情况下(例如,通过查询谷歌地图Web API通过HTTP实现)

Take care though - you would do well to provide some kind of fallback in case the Google Maps library is not installed (for example, by querying the Google Maps Web API over HTTP when you detect that Geocoder is not implemented)

阅读全文

相关推荐

最新文章