I have a known good MAC address for a bluetooth device and I wish to
initiate pairing programmatically.  This would allow the user to pair
without going to the bluetooth settings screen and manually pairing.
I want to avoid having to rely on reflection as in the following
example, but I want the same result:

Method m = device.getClass().getMethod("createRfcommSocket", new
Class[] {int.class});
BluetoothSocket socket = (BluetoothSocket) m.invoke(device, 1);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to