I found the following way hex to binary conversion:
String binAddr = Integer.toBinaryString(Integer.parseInt(hexAddr, 16));
While this app
With all zeroes:
static String hexToBin(String s) { String preBin = new BigInteger(s, 16).toString(2); Integer length = preBin.length(); if (length < 8) { for (int i = 0; i < 8 - length; i++) { preBin = "0" + preBin; } } return preBin; }