How to detect if the bluetooth device is out of range or we have lost it?

For the detected bluetooth device, we get Brodcast from Android with action:

if (BluetoothDevice.ACTION_FOUND.equals(action)) {
    // New bluetooth device found    
}

      

When we set up a detection device, then this happens.

My question is what are the intents that are triggered when device discovery is disabled or the bluetooth of another device is disabled.

In my list view, I am showing devices that are "FOUND", I can do this using the code above. But I want to delete the entry of a device that is no longer in range, is no longer discoverable, or turns off Bluetooth, is there any specific intent the android platform is launching?

I have looked BluetoothDevice

, BluetoothAdapter

link API

s. But no useful broadcast action was found.

+3


source to share


1 answer







All Articles