Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Class cls = Class.forName("android.bluetooth.BluetoothDevice");
  2. Method method = cls.getDeclaredMethod("createScoSocket", (Class[])null);
  3. BluetoothSocket scoSocket = (BluetoothSocket)method.invoke(device, null);
  4. scoSocket.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement