Java tutorial
//package com.java2s; import android.bluetooth.BluetoothDevice; public class Main { public static boolean cancelPairingUserInput(Class class1, BluetoothDevice bluetoothdevice) throws Exception { return ((Boolean) class1.getMethod("cancelPairingUserInput", new Class[0]).invoke(bluetoothdevice, new Object[0])).booleanValue(); } }