I'm trying to create a Bluetooth socket using 'createRFcommSocketToServiceRecord' with some problems. Now, I've read that the createRFcommSocketToServiceRecord method is not working in Android 2.1/2.2. The workaround I saw is the following Android code but I don't know how to adapt to Monodroid:

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

Can anyone give me any idea how to adapt it ?
Thanks for your help

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to