Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议demo里面增加判断是否打开设置--位置,如果没打开gps,即使获取了高精度定位权限结果还是不能扫描,或者加载fq里 #94

Open
lsqbeyond opened this issue Dec 21, 2021 · 0 comments

Comments

@lsqbeyond
Copy link

private boolean checkGPSIsOpen() {
LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
if (locationManager == null)
return false;
return locationManager.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER);
}

@lsqbeyond lsqbeyond changed the title 建议demo里面增加判断是否打开gps,如果没打开gps,即使获取了高精度定位权限结果还是不能扫描,或者加载fq里 建议demo里面增加判断是否打开设置--位置,如果没打开gps,即使获取了高精度定位权限结果还是不能扫描,或者加载fq里 Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant