Android Utililty Methods Long to Hex Convert

List of utility methods to do Long to Hex Convert

Description

The list of methods to do Long to Hex Convert are organized into topic(s).

Method

StringgetBinaryString(long src)
7 => 00000111
String binaryString = Long.toBinaryString(src);
String temp = "";
for (int i = 0; i < Long.SIZE - binaryString.length(); i++) {
    temp += "0";
binaryString = temp + binaryString;
return binaryString;