问题描述
将位置精确度模式设置为High Accuracy
时,一切都会按预期工作,但是几乎没有设备显示No High Accuracy
选项可用。仅Battery Saving
模式可用。对于此类设备,将location always returns
设置为null
。位置请求如下:
mLocationRequest = LocationRequest()
mLocationRequest.interval = interval
mLocationRequest.fastestInterval = interval
if(distance > 0) {
mLocationRequest.smallestdisplacement = distance
}
mLocationRequest.priority = LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY
// also tried with PRIORITY_LOW_POWER
但是未返回位置。任何人都可以指导缺少的步骤吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)