0
在我的代碼中,我試圖通過調用該函數來取消配對藍牙設備。無法調用函數「cancelBondProcess()」
import android.bluetooth.BluetoothDevice; .....
BluetoothDevice Device = mBluetoothAdapter.getRemoteDevice(address); .......
public void unpair(){ int state = getBondState();
if (state == BluetoothDevice.BOND_BONDING || state == BluetoothDevice.BOND_BONDED) {
Device.cancelBondProcess(); //Error in this line
}
感謝您的回覆。如果沒有API,那麼我如何編程實現這一點。 – m4n07 2011-03-16 18:45:16
取決於你想要做什麼,你可能想改變方法。爲什麼你想要刪除保稅設備? – 2011-03-16 19:46:28
Bcoz我的保稅清單越來越大,我不想在我的保稅清單中搜索。如果我知道我將不再使用其他設備,爲什麼我應該保留它? – m4n07 2011-03-17 04:42:13