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