I work with my custom USB Device. I get from it bytes array. I want to display this array as hex string so I convert it firstly into Long like this :
byte[] receivedTag = connector.receive(512);
                        String tag = null;
                        if (receivedTag != null) {
                            long tagValue = ByteBuffer.wrap(receivedTag).getLong();
Next I want to convert it into hex String :
 tag = Long.toHexString(tagValue);
however I've got problem here. Received Tag has something about 400 bytes (I've checked it on debug) , but when I convert it , tag is only 16 chars long(8 bytes, there are correct). Why is that ?
 
    