How can I avoid or dismiss Android's Bluetooth pairing notification when I am doing programmatic pairing?

Try setting the confirmation first in the PAIRING_REQUEST

BluetoothDevice device = intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE");

device.getClass().getMethod("setPairingConfirmation", boolean.class).invoke(device, true);
device.getClass().getMethod("cancelPairingUserInput").invoke(device);

This worked for me between two Android devices using RFCOMM but I'm not entering any PINs


Since Android API 19 Google switched these Methods to public Methods, so there is no need for Reflection any more. :)