[Free] Fetch - A powerful and simple download tool

I just tried and downloaded the same file 10 times with different file names. In your case, It only happens when your URL is not suitable or the file with the same name already exists. Id is just used to identify the download. If you want to use same ids for multiple download then you could it won’t affect your download. However, make sure you are providing a direct download URL and file with that name does not exist.

What result do you get on APK?

Nope. I think I mis-posted it. I just wanted to say that when a file download is cancelled then you could not resume it, you will have to redownload it (We all know this :sweat_smile: ).

Please post some screenshots or something that proves the downloaded file has removed before redownloading it. Maybe a block that show the file does not exist?

Everything you wrote.

No.

No (at least not with the PrivateDir or ASD)

Everything.

I tested the extension with all paths (Shared folders, ASD, PrivateDir) and with media & non-media files on Android 9, 11, 12.
It works perfectly! The is no bug.

1 Like

I created an extra project to reproduce the error:


Steps to reproduce:

1st loop:

  1. hit “download” - download starts and completes succesfuly
  2. after file is downloaded, hit “check” - returns true
  3. hit “delete”
  4. hit “check” - returns false
  5. verify file deletion in filemanager (file deleted)

2nd loop:

  1. hit “download” - creates 0 byte target file and fires “downloadComplete” instantly
  2. hit “delete”
  3. hit “check” - returns false
  4. verify file deletion in filemanager (file deleted)

3rd loop:

  1. hit “download” - creates 0 byte target file and fires “downloadComplete” instantly
  2. hit “delete”
  3. hit “check” - returns false
  4. verify file deletion in filemanager (file deleted)
    .
    .
    .
    until I reinstall the APK or Companion
    It acts like DownloadCompleted “status” stay “hanged” somewhere…

Same behaviour in Companion and APK on Android 10.
No other way to reenable downloading then uninstall/reinstall of the Companion/APK.

Try this (tested on Android 9, 10, 11, 12):
FetchD_ASD.apk (5.5 MB) EDIT: APK removed

(I’ll remove the APK later.)

An 11MB audio file is downloaded from Google Drive to the ASD and played once downloaded:

Steps to test: 1. Download, 2. Delete, 3. Download. Repeat …

Does it work for you? I think so.

1 Like

Hello, when i press download i get this error

It working for me


Android 12

3 Likes

India:
grafik

Germany
grafik

:sob:

1 Like

Egypt : KB/s :slightly_smiling_face:

1 Like

Your APK works like a charm. :slight_smile:
I tried to define target path using GetASDpath instead of File component - still no succes, same bug. On first loop after reinstall of Companion (or APK) download works, on second and more tries, it does not. Starting to be desperate… Any ideas? Anke, maybe you can try to build apk same way like I did and try download some .zip to see what happens?

grafik

Thanks. The situation becomes more weird. I tested what happens when I cancel download in the middle of the progress, lets say 50 %. Then I deleted target file and started download over - the download started succesfully, but the progress counter continued from 50 %. I tried this repeteadly, and the counter countinoued increasing until it reached 100 %. So it looks like the AIX somehow “remember” the progress even if the download is canceled (this operations should IMHO logically reset the progress counter to 0, compared to download paused which expects the user wants to continue downloading later on). I think this could be related to my issue. Sumit, can you pls double check on this? Is the source code of the AIX available to throw an eye on that?

It’s fully based on Fetch library written in Kotlin.

2 Likes

Yeah, of course. :slight_smile: I mean source of the AIX itself to see what exactly are you calling by your blocks and how. I hope it’s not secret :))

You are right, there are small issues with some events, but these can easily be avoided, as I have shown.

Can you show you code for this demo APK? How did you avoided those small issues?

Can this work in Android 11? With Android data folder.

1 Like
  1. Use the .OnProgress instead of .DownloadCompleted event.
  2. Remove the file from path when / after canceling.

It works on all Android versions and as I said with all paths (Shared folders, ASD, PrivateDir).

1 Like

Anke, can you post blocks pls?

Did you follow my suggestion? If yes, where is the problem?

Can you show me your blocks - please! :slight_smile: I want to repeat you steps 1:1. Thank you!

EDIT: finally solved.

On appinit random int is generated with value in interval between 10e6 to 10e12 to use as a filename. This is a workaround to enable Fetch donwload same file over and over for me. Then the downloaded file is renamed to target filename to be processed in next steps.

But still, resolving the bug in some next version of AIX would be highly appreciated. I hate workaround.

Many thanks to Anke for her attention, at the end it helped me realize what to do. :slight_smile:

EDIT2: well, this is f***n ridiculous… The workaround above does work within Companion but not builded to APK. One week of life spent on this sht… fck.