I'm new in the world of Java and Android and I'm developing an android app.
The app connects a tablet with a non-android device(medical) by Bluetooth and It has to show the information on the screen.
The problem is that I dont know how to understand the information I receive, because I dont know how the device is sending the inf, lenght of byte stream, etc.
Bassed on the BluetoothChat sample I've tried with:
byte[] buffer = new byte[1024];
int bytes= mmInStream.read(buffer);
message = new String(buffer,0,bytes);
And finally when I show the message it has no sense;
Note: The information should be numbers, and maybe some words, but I think that it just sends numbers.