Short description
ASD Downloader extension to download files in App Specific Directory (ASD) without READ or WRITE PERMISSION. Since ASD is always accessible to READ and WRITE files within the app it does not requires READ and WRITE PERMISSION.
Nowadays due to new restrictions in higher Android versions it is difficult to manage files without READ and WRITE PERMISSIONS where ASD is very useful to store downloaded files and manage them without any permission.
This extension allows you downloading files in ASD and managing them with various functions.
You can either show download system notification or you can hide it using this extension, also you can create a custom notification layout if you want.
There is already extension available to download files to ASD, I have developed this extension with some additional functionalities which makes this extension more useful and gives more scopes to manage files in ASD.
Both extensions are useful, you can use any one as per your requirement.
Picture of all the blocks
Instructions to use your extension
Returns ASD path of your app. ASD will be by default created when app in installed, this block checks for ASD if not exist then it creates and returns ASD path.
Download files from given URL, set file name with file extension. Default file download location will be ASD, if you want to download in a specific folder then specify folder name before file name and make sure that folder is already exist in ASD if not you can create folder by using CreateFolder block. One file can be downloaded at a time.
Returns real-time total size of the file, downloaded size, progress in percent of ongoing download task.
Returns downloaded file path.
Raises when any error occurres.
Cancel ongoing download task.
Raised when download is cancelled and returns the file url which has been cancelled
Returns true if download task is in progress else false.
Returns true if file exist from given file path.
Deletes the given file and returns deleted file path.
Creates a new folder in ASD with given folder name and returns created folder path.
Renames the given file path with new file name and returns file path of renamed file.
Copy file asynchronously from source path to destination path. You can copy file from one folder to another but make sure that destination folder already exist in ASD if not you can create by using CreateFolder block.
Returns the file list and folder list from given path.
Change Log:
Version 2: Added additional blocks.
Version 3: Added
Show Notification
andNotify Completed
properties.
Download
Latest AIX: Version 6: (Compatible with API 34): ASDDownloaderAPI34.aix (35.2 KB)
Please test this and let me know if any issue or need any additional functionalities, I will be happy to add them if possible.
Leave a like if found useful