BulkDownload

Additional

Language
Java
Version
N/A
Created
Dec 27, 2018
Updated
Dec 27, 2018 (Retired)
Owner
Thilina Anradh Waasalage (tawaasalage)
Contributor
Thilina Anradh Waasalage (tawaasalage)
1
Activity
Badge
Generate
Download
Source code

TAWSOFT

BulkDownload is a library project that allows bulk content downloads in a cleaner way.

Installation

BulkDownload requires Android SDK v21+ to integrate.

Copy bulkuploads.aar file in to your project lib folder

$ implementation (name: 'bulkuploads', ext:'aar')

In your gradle file

repositories {
        flatDir {
            dirs 'libs'
        }
    }

Usage

  ArrayList<FilesModel> files=new ArrayList<>();
  
  FilesModel filesModel=new FilesModel();
  filesModel.setSavename("newfilename.jpeg");
  filesModel.setSavePath("PATH ON YOUR STORAGE");
  filesModel.setUrl("https://images.pexels.com/photos/531880/pexels-photo-531880.jpeg");
  files.add(filesModel);
  
  //Need to pass Activity here in order to show Progressbar
  BulkDownloadHelper dImg=new BulkDownloadHelper(MainActivity.this);
        dImg.DownoloadFiles(files, new UploadStatusCallback() {
            @Override
            public void onCompleted() {
                Log.d("Download","Success");
            }

            @Override
            public void onError() {

            }
        });