Java tutorial
//package com.java2s; //License from project: Apache License import android.bluetooth.BluetoothDevice; import java.lang.reflect.Method; public class Main { public static boolean cancelPairingUserInput(BluetoothDevice device) throws Exception { Method cancelPairingUserInputMethod = device.getClass().getMethod("cancelPairingUserInput"); return (Boolean) cancelPairingUserInputMethod.invoke(device, true); } }