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