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.
我在 Android 中找不到任何标准 API 来检查 SPP 配置文件支持。有什么方法(直接或间接)可以通过编程方式确定这一点?我能想到的一种间接方法是使用 BluetoothAdapter.listenUsingRfcommWithServiceRecord 来启动 RFCOMM 服务器套接字,如果设备支持 SPP,它应该(大概)成功,否则失败。这会起作用,还是有更好/正确的方法?