You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
lsqbeyond
changed the title
建议demo里面增加判断是否打开gps,如果没打开gps,即使获取了高精度定位权限结果还是不能扫描,或者加载fq里
建议demo里面增加判断是否打开设置--位置,如果没打开gps,即使获取了高精度定位权限结果还是不能扫描,或者加载fq里
Dec 21, 2021
private boolean checkGPSIsOpen() {
LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
if (locationManager == null)
return false;
return locationManager.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER);
}
The text was updated successfully, but these errors were encountered: