[ FREE ] Customdownloader Extension

[ FREE ] Customdownloader Extension

:earth_americas: Released on : 28 October 2023

:earth_americas: Updated on : 28 October 2023

:gear: Latest Version : 1.0

All Blocks

Screenshot 2023-10-28 134002
Screenshot 2023-10-28 134055

Documentation

Screenshot 2023-10-28 134327

Event triggered when an error occurs during download.

Screenshot 2023-10-28 134500

Successful Download downloadId, filePath, fileSize, fileName

Screenshot 2023-10-28 134600

Event triggered to report download progress, speed, eta, fileSize, and downloadedSize

Screenshot 2023-10-28 134936

Download the file of given URL to the given path with

CustomFilePath.isEmpty : filePath = /storage/emulated/0/Download

Sat This CustomFilePath : /storage/emulated/0/Download/any folder name

Screenshot 2023-10-28 135211

Set the custom notification title for download complete notification.

Screenshot 2023-10-28 135308

Set the custom notification message for download complete notification.

Screenshot 2023-10-28 135521

Get a list of all download IDs

Screenshot 2023-10-28 135605

Get the ASD path of your app

Screenshot 2023-10-28 135735

Get the current download ID.

Screenshot 2023-10-28 135839

Cancel all ongoing downloads.

Screenshot 2023-10-28 135924

This block converts the bytes into KB and MB automatically, You can use own calculation for converting bytes into big units.

Screenshot 2023-10-28 140019

Get the downloaded size for a specific download ID

Screenshot 2023-10-28 140202

These blocks pause/resume/cancel the download for given id. Download will be restarted when the download is cancelled.

Notification

274290123-6a3fbffd-526a-4654-888f-1b17e658aa57

These blocks pause/resume/cancel the download for given id. Download will be restarted when the download is cancelled.

274290486-6f1f9453-3ac8-416d-ab4f-e7750151b6eb

download complete notification You can customize the title and message display here

How to Use

Screenshot 2023-10-28 140959

CustomFilePath.isEmpty : filePath = /storage/emulated/0/Download

Sat This CustomFilePath : /storage/emulated/0/Download/any folder name

Screenshots

274291966-a292d485-4a3a-40c1-969f-b6a9cf042f24

notification permission automatically show

274292185-8883a170-c574-4d4a-a5e9-8136cf216e6a

Download

:earth_americas: Released on : 28 October 2023

:earth_americas: Updated on : 28 October 2023

:gear: Latest Version : 1.0

com.R2Store.customdownloader.aix (21.1 KB)

7 Likes

The extension should / must declare WRITE_EXTERNAL_STORAGE permission in the Manifest for maxSdkVersion=29, because if you do not want to download into the ASD, this permission must be requested on Android < 11.

In addition, storage permissions are also required for the ASD on Android < 4.4 (API 19, KitKat).
And the minSdkVersion is 7 (Android 2.1, Eclair) for AI2.

3 Likes

I hope this is the last time you post this extension. This is your third topic about it.

3 Likes

I'm testing this extension and it is working fine, good job!, just one minor problem, the download speed is extremely slow compared with another download manager, for instance:

Is there anything that can be done to check what could be the cause?

Your main download Procedure is not have any id to provide identify, How can i get which id is for whose for all your other blocks?

Error while downloading.

you get it from the DownloadProgress event

How to get the value of ongoing download?

If the download happens again then only the id value changes.

What if we needed to identify the download?

There are methods for it in the event.

What do you want to identify about the download? Mimetype?

I want to identify my download If I have 5 downloads run at same time how to get the value of all as per my needs.

See, you have to be descriptive and precise about what values you want to get, do you want all the values, like speed, bytes, progress, etc? You can do that with the blocks built-in. you can use loops for that purpose. You can go through each of the download IDs and then get the value as per your needs. The exact answer cannot be told if you are not descriptive enough.

Show me block demo.

I'm busy and I won't be able to, thank you for your understanding.
Why don't you try it out and show us the results?