关闭GP和Internet工作时,我可以找到位置吗?



我的问题是关闭GP时在Android设备中获取位置。

确保可以,您只需要将位置请求设置为PRIRISITION_LOW_POWER https://developers.google.com/android/android/reference/reference/com/google/google/google/android/android/gms/location/location/locationrequestrequestrequestrequestrequestrequestrequestrequestrequest。

请求的优先级是对位置来源使用的位置限制的强烈提示。例如,Priority_high_accuracy更有可能使用GPS,Priority_balanced_power_accuracy更有可能使用WiFi&细胞塔定位,但这也取决于许多其他因素(例如,可用来源),并且取决于实施。

相关内容

最新更新