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.
我有带有 HeadSet、A2DP 和 rfcomm 配置文件的设备。当我通过三星(我有三星 Nexus S)上的 RfComm(手机和设备已经连接)连接到设备时,标准连接(A2DP,RFCOMM)会发生故障(断开连接)。
socked.connect();
它不会出现在 HTC 上。
也许有人有这个错误或知道解决方案。
您是否尝试过使用反射的解决方法?
int portnumber = //what ever port you are connecting to Method m = device.getClass().getMethod("createInsecureRfcommSocket", new Class[] {int.class}); tmp = (BluetoothSocket) m.invoke(device, portnumber);