I am looking for a bluetooth sample code on Android to do non-blocking socket communication.
I found several examples, like the BluetoothChat or BluetoothSocket.java but none is non-blocking socket communication.
ps does non-blocking automatically mean that is has to be asynchronous? I think actually not – it is not the same, I assume I could do synchronous socket communication with a timeout. That’s the kind of example I am looking for…
Thank you very much
Looks like the answer is pretty much you can’t
however with a bit of threading magic, your can have your system work the way you want
message system
socket listener