首页 文章

三星蓝牙RfComm连接失败

提问于
浏览
0

我有HeadSet,A2DP和rfcomm配置文件的设备 . 当我通过RfComm(手机和设备已连接)连接到设备时,三星(我有三星Nexus S)标准连接(A2DP,RFCOMM)发生故障(断开连接) .

socked.connect();

它没有出现在HTC上 .

也许有人有这个错误或知道解决方案 .

1 回答

  • 0

    你有没有尝试过使用反射的解决方法?

    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);
    

相关问题