Goal is to read the values of a bluetooth LE heart rate monitor.
Using google\'s sample, I get
private void scanLeDevice(final boolean enable) {
Use BluetoothAdapter.getBluetoothLeScanner() to get an instance of BluetoothLeScanner.
Then, you can start or stop a scan with the startScan or stopScan methods, much like the deprecated version.
Difference is you can pass scanfilters and settings. The ScanCallback has more info about found devices. Filters allow you to filter scanresults based on name, macaddress, service UUIDs etc. Scan settings allow you to control scanning power.