@Override public void onDownloadProgress(long finished, long length) { mStatus = DownloadStatus.STATUS_PROGRESS; // calculate percent final int percent = (int) (finished * 100 / length); mResponse.onDownloadProgress(finished, length, percent); }