List of utility methods to do Byte to Binary Convert
String str = ""; for (int i = 7; i >= 0; i--) str += ((b & (1 << i)) != 0) ? "1" : "0"; return str;