Java tutorial
//package com.java2s; //License from project: Apache License import android.bluetooth.BluetoothDevice; public class Main { public static void setPairingConfirmation(BluetoothDevice device) throws Exception { device.getClass().getMethod("setPairingConfirmation", boolean.class).invoke(device, true); } }