IP屬地:河南
運(yùn)行到socket.connect();就會(huì)報(bào)錯(cuò)-->java.io.IOException: read failed, socket might closed or timeout, read ret: -1。
我并沒(méi)有任何關(guān)閉連接的代碼。前面匹配都是ok的,這個(gè)問(wèn)題困擾我兩天了,求幫助
Android 藍(lán)牙搜索,配對(duì),連接發(fā)送數(shù)據(jù)首先需要在清單配置里面添加兩個(gè)權(quán)限: android里面藍(lán)牙是通過(guò)BluetoothAdapter來(lái)進(jìn)行操作的,所以首先我們需要獲取到BluetoothAdapter的實(shí)例 ...