Ejemplo n.º 1
0
 /**
  * Remove bond (pairing) with the remote device.
  *
  * <p>Delete the link key associated with the remote device, and immediately terminate connections
  * to that device that require authentication and encryption.
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
  *
  * @return true on success, false on error
  * @hide
  */
 public boolean removeBond() {
   try {
     return sService.removeBond(mAddress);
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return false;
 }
Ejemplo n.º 2
0
 /**
  * Remove bond (pairing) with the remote device.
  *
  * <p>Delete the link key associated with the remote device, and immediately terminate connections
  * to that device that require authentication and encryption.
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
  *
  * @return true on success, false on error
  * @hide
  */
 public boolean removeBond() {
   if (sService == null) {
     Log.e(TAG, "BT not enabled. Cannot remove Remote Device bond");
     return false;
   }
   try {
     return sService.removeBond(this);
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return false;
 }