In Android 2.1, to unpair a Bluetooth device you can go to Bluetooth settings, long-click on a device and select Unpair to unpair that device. I want to be able to do this from my application. I can retrieve a list of paired/bonded devices using BluetoothAdapter.getBondedDevices(), but I can't find how to unpair. I've explored the BluetoothChat sample, and I've searched the sdk but still can't find an API that allows this.
How can I unpair a Bluetooth device?
Best Answer
Here's how you unpair/remove a bonded device call this method where macAddress is the string of the mac address of the device..i.e. "00:02:00:A3:03:05"
To get the IBluetooth Object you need to go through a couple of steps
create method in your files called getBluetooth()
/************ IBluetooth.aidl ************/
/************ IBluetoothCallback.aidl ************/