草庐IT

positionChanged

全部标签

windows - 是否可以在 PositionChanged 事件处理程序中更改 Geolocator 的 DesiredAccuracy 和 ReportInterval?

我想更改PositionChanged事件处理程序中的DesiredAccuracy和ReportInterval,以便我可以动态更改不同位置的位置更新频率。我做了这样的事情,voidgeolocator_PositionChanged(Geolocatorsender,PositionChangedEventArgsargs){geolocator.StatusChanged-=geolocator_StatusChanged;geolocator.PositionChanged-=geolocator_PositionChanged;geolocator.DesiredAccura

c# - Windows Phone 8.1 位置跟踪

我想实现一个持续将设备位置发送到网络服务的应用程序。查看文档,我找到了Geolocation类和一些讨论位置跟踪的文章:Howtocontinuouslytrackthephone'slocationforWindowsPhone8Howtorunlocation-trackingappsinthebackgroundforWindowsPhone8实现这些文章中讨论的两个示例项目时,我注意到geolocator_PositionChanged()事件不会在每次位置更新时触发。事件的两次执行之间存在延迟(大约10/15分钟)。奇怪的是,即使应用程序在前台执行(不仅在后台),也会发生这种