android bluetooth can't connect

后端 未结 2 814
执念已碎
执念已碎 2021-01-31 00:52

I\'ve been having this problem for a while and haven\'t been able to figure it out.

I have a android application that puts all paired devices in a listview. When you cl

2条回答
  •  礼貌的吻别
    2021-01-31 01:08

    I got the same error message after connecting the socket a second time. I simply checked if the socket is already connected.

    if(!mmSocket.isConnected())
                mmSocket.connect();
    

    I was testing on Android 4.4.2 (Moto G).

提交回复
热议问题