- // Send the obtained bytes to the UI Activity
- mHandler.obtainMessage(AltosDroid.MESSAGE_READ, bytes, -1, buffer)
+ if (bytes > 0) {
+ Log.i(TAG, "Recv: " + new String(buffer, 0, bytes));
+ // Send the obtained bytes to the UI Activity
+ mHandler.obtainMessage(AltosDroid.MESSAGE_READ, bytes, -1, buffer)