code: public static String sizeFromBytes(final long aByteCount, final boolean aAbbreviatedLabel) {
          long count;
  
          if ((count = aByteCount / 1073741824) > 0) {
              return count + (aAbbreviatedLabel ? " GB" : " gigabytes");
          } else if ((count = aByteCount / 1048576) > 0) {
              return count + (aAbbreviatedLabel ? " MB" : " megabytes");
          } else if ((count = aByteCount / 1024) > 0) {
              return count + (aAbbreviatedLabel ? " KB" : " kilobytes");
          }
  
          return count + (aAbbreviatedLabel ? " B" : " bytes");
      }
docs: Returns a human readable size from a large number of bytes. You can specify that the human readable size use an
  abbreviated label (e.g., GB or MB).
  
  @param aByteCount A large number of bytes
  @param aAbbreviatedLabel Whether the label should be abbreviated
  @return A human readable size