开发者

how to use geocoder in android 2.2 emulator or android 2.1 device

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?

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 is开发者_StackOverflow中文版sues.

Thanks,

Lakshmanan


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")

Here is the page explaining how to install it in your development environment

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜