Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class cls = Class.forName("android.bluetooth.BluetoothDevice");
- Method method = cls.getDeclaredMethod("createScoSocket", (Class[])null);
- BluetoothSocket scoSocket = (BluetoothSocket)method.invoke(device, null);
- scoSocket.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement