The project is to use my android phone to connect with my arduino devices. but how can I unpair the paired ones. I see it seems the paired list is stored where bluetoothadapter could retrieve anytime.
PS:
1st, I know long press paired device will unpair it.
but the question here is how can I make this happen programmatically?
2nd, I have checked bluetoothdevice and bluetoothAdapter class, there is no function to implement this.
thanks.
This code works for me.
in BluetoothService class there is method removebond() to unpair , paired devices. Finally this method call rmovebondnative().
unpair all devices:
If you want to delete the pair bluetooth device for this first of all you have to unpair all the device and than click on serch option you will find all device has removed from the list.