【问题标题】:What is the use of "Maintain a current best estimate" of location Android?位置Android的“保持当前最佳估计”有什么用?
【发布时间】:2013-05-16 13:55:33
【问题描述】:

我读过the documentationthis

我不明白为什么这个函数isBetterLocation() 甚至存在。该函数告诉“当前位置修复”和“新位置”之间的区别。但是这两个位置到底是什么?

我能想到

  • 存储在应用程序首选项、数据库等中的最后位置以及从位置提供者检索的位置,例如全球定位系统
  • 从位置提供程序检索到的位置和通过onLocationChanged() 获得的最新位置

无论哪种情况,后者都是最新的;因此,更准确。那么,为什么还要费心进行比较呢?
我能想到的唯一解释是,更新的位置信息并不总是更准确。这是真的吗?

【问题讨论】:

    标签: android locationmanager android-location locationlistener location-provider


    【解决方案1】:

    看这里http://developer.android.com/guide/topics/location/strategies.html,这个页面上有解释(android文档)

    【讨论】:

    • 感谢@Quanturium,如上所述,我已经阅读过此类文档,但它没有回答我的问题
    猜你喜欢
    • 2018-03-17
    • 2013-07-23
    • 2013-03-17
    • 2011-07-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多