public byte receiveOneByte(){
  Log.d(TAG,"receiveOneByte() entrance");
  try {
    acquireLock();
    mServerSocket.receive(mReceivePacket);
    Log.d(TAG,"receive: " + (0 + mReceivePacket.getData()[0]));
    return mReceivePacket.getData()[0];
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return Byte.MIN_VALUE;
}

public byte receiveOneByte ( ) { Log . d ( TAG , "receiveOneByte() entrance" ) ; try { acquireLock ( ) ; mServerSocket . receive ( mReceivePacket ) ; Log . d ( TAG , "receive: " + ( 0 + mReceivePacket . getData ( ) [ 0 ] ) ) ; return mReceivePacket . getData ( ) [ 0 ] ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return Byte . MIN_VALUE ; }
receive one byte from the port and convert it into string
