I've found this code to call Pairing Dialog:
Method createBondMethod = Class.forName("android.bluetooth.BluetoothDevice").getMethod("createBond");
createBondMethod.invoke(btDevice);
Can anyone explain, why reflection is used?
I've found this code to call Pairing Dialog:
Method createBondMethod = Class.forName("android.bluetooth.BluetoothDevice").getMethod("createBond");
createBondMethod.invoke(btDevice);
Can anyone explain, why reflection is used?