【发布时间】:2012-06-27 08:10:50
【问题描述】:
Criteria 类(http://developer.android.com/reference/android/location/Criteria.html) 有电源要求标准。但显然没有解释它是如何工作的。有了 ACCURACY 就更清楚了。 ACCURACY_HIGH - 需要 GPS 提供商。 ACCURACY_MEDIUM -WiFi/移动网络。 ACCURACY_Low - 移动网络。 但是权力呢?如果它满足准确性要求,为什么我们需要这个标准? 例如,如果我询问标准,将使用哪个提供程序: locationCriteria.Accuracy = Accuracy.Fine; (仅需要 GPS) 和creteria: locationCriteria.PowerRequirement = Power.Low; (它只需要非 GPS-priveder)
任何位置提供者都不应满足这些要求。然而,该程序尝试使用 GPS 提供程序。其中没有什么是清楚的,也没有在网络中的任何地方解释。那么我需要挖掘 Android 源代码还是什么?
【问题讨论】:
标签: android geolocation location