Java tutorial
//package com.java2s; import android.bluetooth.BluetoothDevice; import java.lang.reflect.Method; public class Main { public static boolean cancelPairingUserInput(BluetoothDevice device) throws Exception { Method createBondMethod = device.getClass().getMethod("cancelPairingUserInput"); Boolean returnValue = (Boolean) createBondMethod.invoke(device); return returnValue.booleanValue(); } }