My apps which use bluetooth SPP to communicate with devices, all work fine with samsung tab 3, and before.
But I noticed the latest version of tab3 lites, and tab4s, and my s6 edge which all have Android L, have issues.
I will get random errors such as:
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
and then sometimes it will connect fine, and then it sends 3 random bytes through the BT connection instead of the real packet, and sometimes it works fine. its very erratic/random. Then when I hit the back arrow to get out of the app, it will close unexpectedly sometimes. And, the logcat in the IDE through USB debugging isnt catching the exception so I dont see what happened.
Go back to my older devices which are running kitkat, problems gone. So... I dunno what to do. My S6 edge does very similar things as the Tab 3 Lite that I have. I have a gut feeling it has something to do with the dalvik/art switchover.
I am compiling with API21, in the process of downloading API22 to see if it makes any difference.
any ideas?
But I noticed the latest version of tab3 lites, and tab4s, and my s6 edge which all have Android L, have issues.
I will get random errors such as:
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
and then sometimes it will connect fine, and then it sends 3 random bytes through the BT connection instead of the real packet, and sometimes it works fine. its very erratic/random. Then when I hit the back arrow to get out of the app, it will close unexpectedly sometimes. And, the logcat in the IDE through USB debugging isnt catching the exception so I dont see what happened.
Go back to my older devices which are running kitkat, problems gone. So... I dunno what to do. My S6 edge does very similar things as the Tab 3 Lite that I have. I have a gut feeling it has something to do with the dalvik/art switchover.
I am compiling with API21, in the process of downloading API22 to see if it makes any difference.
any ideas?