Buetooth connection failed: read failed, socket might closed or timeout, read ret: -1
Try to use ,
createInsecureRfcommSocketToServiceRecord(MY_UUID)
in place of
createRfcommSocketToServiceRecord(MY_UUID)
This should fix the problem. Share your debugging results , if this doesn't fix the issue.
Also , don't generate random UUID(s), try the one below.
UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");