简体   繁体   English

无法从Vehicle API更新位置监听器

[英]No Update for Location Listener from Vehicle API

I've added the external location listener to my app as suggested. 我已按照建议将外部位置监听器添加到我的应用中。 On my test device I do not get any location update. 在我的测试设备上,我没有任何位置更新。 What can I do to receive location updates? 如何接收位置更新?

The external location provider does only work in 'real' vehicles where the dispo pilot is connected to the vehicle. 外部位置提供者仅在将Dispo飞行员连接到车辆的“真实”车辆中工作。 The 'external' provider gets location updates from the external antenna which 'should' deliver more accurate results as the internal 'gps' location provider. “外部”提供者从外部天线获取位置更新,作为内部“ gps”位置提供者,“应该”提供更准确的结果。

To make your app more fault tolerant you can register to both the gps and the external location provider and let the app decide (based on the location accuracy) which location update to use. 为了使您的应用程序更具容错能力,您可以同时向GPS和外部位置提供商注册,然后让应用程序(根据位置准确性)决定要使用哪个位置更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM