ZionFileDownloader
caneryilmaz
16
Visit GitHub Repo
Download Managers

The ZionFactory help you download files with so short code

96926-200android

create an instance from ZionDownloadFactory set fileUrl and fileName parameter

ZionDownloadFactory factory = new ZionDownloadFactory(this, pdfUrl, "fileName");
        DownloadFile downloadFile = factory.downloadFile(FILE_TYPE.PDF);
        downloadFile.start(new ZionDownloadListener() {
            @Override
            public void OnSuccess(String dataPath) {
                // the file saved in your device..
                //dataPath--> android/{your app package}/files/Download
            }

            @Override
            public void OnFailed(String message) {

            }

            @Override
            public void OnPaused(String message) {

            }

            @Override
            public void OnPending(String message) {

            }

            @Override
            public void OnBusy() {

            }
        });

for choosing another type download mode just change FILE_TYPE parameter..

can change download status info strings
   <string name="mp3_file_title_dw"></string>
   <string name="image_file_title_dw"></string>
   <string name="pdf_file_title_dw"></string>
   <string name="video_file_title_dw"></string>
   <string name="status_downloading_dw"></string>
dependencies
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
	}
}
dependencies {
	 compile 'com.github.caneryilmaz:ZionFileDownloader:0.1.1'
	}

Become Pro in Android by watching videos

OUR LEARNERS WORK AT