输入一个:
Method m = btDevice.getClass().getMethod("createRfcommSocket", new Class[] { int.class });
btSocket = (BluetoothSocket) m.invoke(btDevice, 1);
btSocket.connect();
键入二:
private final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
btSocket = btDevice.createInsecureRfcommSocketToServiceRecord(SPP_UUID);
btSocket.connect();