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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en