Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 HTC Hero 中使用默认的 android 示例代码“蓝牙聊天”。搜索设备正在工作,当我单击列表时,它可以完成配对工作并在标题上显示连接。但是在调用 BluetoothServer.connect() 时会抛出 IOException。
PS:我没有连接到 PC 上的蓝牙适配器。
我找到了原因。蓝牙适配器只能支持 Obex 推送对象协议。所以现在把 UUID 改成 00001105-0000-1000-8000-00805F9B34FB 就可以了。