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