是否有一种全局方法可以更新所有基于位置的应用程序的位置?
我有一部 WP7 手机,注意到在室内时,某些基于位置的应用程序无法确定我的位置。
如果我有 10 个基于位置的应用程序,我不会在进入建筑物并更新我的位置之前启动所有这些应用程序。我想知道移动应用程序开发人员采取什么解决方案来解决这个问题?手机是否会持续将其位置保存到本地存储中,以便在 GPS 信号不可用时移动应用程序可以使用?
I have a WP7 phone and noticed, while being indoor, some location based apps can't determine my location.
If I have 10 location based apps, I am not going to launch them all just before I enter a building and update my location. I was wondering what solutions mobile apps developers do to solve this issue? Does the phone save its location on an ongoing basis into local storage which mobile apps can use if the GPS signal is not available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
位置服务维护应用程序可以使用的位置信息。通常,在室内时当前位置的准确度较低,但定位服务通常会保持位置。某些应用程序无法确定您的位置的原因取决于它们的实施方式。显然,我无法给您一个结论性的答案,但有些人可能会从定位服务中获取当前位置,并掩盖您作为用户的准确性,而另一些人可能会等待定位服务中的新位置,这可能需要一段时间尽管。
该方法取决于应用程序以及使用位置的方式/原因,但就我个人而言,我会获取当前位置并让用户以某种形式或其他方式查看准确性,然后在用户从位置服务进入时更新该位置而不是在显示任何内容之前等待新位置。
The Location services maintain positional information that applicatons can consume. Typically, when indoors the accuracy of the current position is low, but the location services usually maintain a position. The reason that some apps can't determine your location would be down to the way they are implemented. Obviously, I can't give you a conclusive answer, but some may take the current location from the location services and mask the accuracy from you as a user, whereas others might wait for a new position from the location services, which could take a while.
The approach depends on the application and how/why the location is used, but personally I'd take the current position and let the user see the accuracy in some form or other, and then update that position as they come in from the location services rather than waiting for a new position before displaying anything.