GPS accuracy of Android Emulator

人走茶凉 提交于 2019-12-11 11:24:02

问题


I am developing a website which used W3C GeoLocation API to obtain users' position. I try to run the website in Android Emulator and use DDMS / geo fix to send the coordinate to the device. However the coordinate received is inaccurate. For example, (22.377127, 114.095535) will become (22.370335, 114.08523353). I try to run some Android GPS example from Internet, and the results is just the same. I can certainly say that this is not my program bug. From my observation, it seems like some rounding problem. Can anybody help? Thanks.

My Environment: Windows 7 Professional 64bit Android 2.2 with Google API (API level 8)


回答1:


Based on deviation in gps coördinates android emulator: The emulator isn't accurate enough for precise location gathering.

Once you've determined (with the emulator) that your program is operational with GPS, you'll need to load it up on devo hardware to test it in a real GPS scenario.




回答2:


try to put the longitude and latitude in 2 doubles... !




回答3:


I notice the same problem. I send lon, lat -83.0000, 40.000 via DDMS and the emulator app receives and -83.013833, 40.006666.



来源:https://stackoverflow.com/questions/4076309/gps-accuracy-of-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!