cancel Bond Process for Bluetooth Device - Android android.bluetooth

Android examples for android.bluetooth:Bluetooth Pair

Description

cancel Bond Process for Bluetooth Device

Demo Code

import java.lang.reflect.Method;

import android.bluetooth.BluetoothDevice;

public class Main {

  static public boolean cancelBondProcess(Class<?> btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelBondProcess");
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
  }//  w  w  w .j  a  v a2 s .c  om

}

Related Tutorials