void cancelAll(){
synchronized (currentRequests) {
    for (    DownloadRequest request : currentRequests) {
      request.cancel();
    }
  }
  currentRequests.clear();
}

void cancelAll ( ) { synchronized ( currentRequests ) { for ( DownloadRequest request : currentRequests ) { request . cancel ( ) ; } } currentRequests . clear ( ) ; }
cancel all the download .
