i am trying to "catch" when the bluetooth is disconnected from a device. im am using this code:
if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action)){
deleteNotification();
setWarningState(WarningState.RedWarning);
showNotification("You are parked");
but when im disconnection the bluetooth by turning off the remote device or by turning off the bluetooth toggle in the phone it will not enter this if statment.
when im using this:
BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)
its working allright (when aconnection is astablished). why is that and how can i make it work? Thanks!
Have you registered the below IntenFilters