Xe5 locationsensor distance doesn't work?

╄→гoц情女王★ 提交于 2019-12-08 13:23:53

问题


I use in my app TLocationSensor on Android but I have a problem with Distance property. If I set 10 meters and I don't move OnLocationChange is fired.

What should I set and how to make it work ?


回答1:


Probably the XE5's location sensor component does work - it is just the device incapable of providing Delphi accurate enough data under given circumstances.

You can take some mapping software like MapSoft Navigator and record a track for few hours. If that track would show the significant deviations, then it means the device thinks it is being sporadically moved. And it reports those movements to Delphi, which triggers the events.

See the data presumably gathered under open skies, even without reinforced concrete walls making reflections and distortions: https://gis.stackexchange.com/questions/12011



来源:https://stackoverflow.com/questions/20939472/xe5-locationsensor-distance-doesnt-work

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