listenUsingInsecureRfcommWithServiceRecord(String name, UUID uuid)
Create a listening, insecure RFCOMM Bluetooth socket with Service Record.
listenUsingRfcommWithServiceRecord(String name, UUID uuid)
Create a listening, secure RFCOMM Bluetooth socket with Service Record.
这两个方法有什么区别?
我个人不是太清楚,一些有些用处的解释是,这两个方法一个是安全的,一个是不安全的连接。
比如:蓝牙耳机就是不安全的设备,当然还有其他。
另外有说法是使用不安全的方法,可以不同过key进行配对,具体其实题主自己通过可用的设备测试可能会好点。