BluetoothLeScanner.startScan with Android 6.0 does not discover devices
I'm trying to use the function BluatoothLeScanner.startScan instead of the deprecated one BluetoothAdapter.startLeScan . Yesterday I updated my Nexus 5 to Android 6.0 and since that moment my app does not work anymore. I firstly add the preferences required ACCESS_COARSE_LOCATION as found here, https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id . Then I added the permission as described here: https://developer.android.com/training/permissions/requesting.html . But at the end it seems not working, it does not send back the ble devices. This is