Detect if “Bluetooth scanning” for location is turned on
问题 Since Android M it is possible to scan for Bluetooth devices in the background even if the global location is turned off if you have enabled the Bluetooth scanning option in location settings (see screenshot). In order to scan for BLE devices, the following conditions must be met: COARSE_LOCATION or FINE_LOCATION permission granted. And one of the following: Global Location selector enabled. Bluetooth scanning option enabled (see screenshot). I can check that the permission is granted and the