Hex, binary and decimal conversion for android