0

Thanks for such a wonderful library. Just wanted to know is there a way to get the progress or byte size downloaded while downloading big size images/files whith BinaryHttpResponseHandler. Awaiting response.

Hoping to get sample code for using this.

Kozlov V
  • 146
  • 5
  • 17

1 Answers1

9

All you have to do is override the OnProgress method :

@Override
public void onProgress(long bytesWritten, long totalSize) {
    long progressPercentage = (long)100*bytesWritten/totalSize;
}
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244
Hannoun Yassir
  • 20,583
  • 23
  • 77
  • 112