mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-04 15:24:19 +01:00
Location Fine permission
This commit is contained in:
@@ -215,7 +215,7 @@ public class ScannerFragment extends DialogFragment {
|
||||
* using class ScannerServiceParser
|
||||
*/
|
||||
private void startScan() {
|
||||
// Since Android 6.0 we need to obtain either Manifest.permission.ACCESS_COARSE_LOCATION or Manifest.permission.ACCESS_FINE_LOCATION to be able to scan for
|
||||
// Since Android 6.0 we need to obtain Manifest.permission.ACCESS_FINE_LOCATION to be able to scan for
|
||||
// Bluetooth LE devices. This is related to beacons as proximity devices.
|
||||
// On API older than Marshmallow the following code does nothing.
|
||||
if (ContextCompat.checkSelfPermission(requireContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
|
||||
|
||||
Reference in New Issue
Block a user