[DISCONTINUED] Extension to download a file to ASD (app-specific directory) without WRITE permission

When i try to download several files (one by one), sometime when all files download completed, DownloadProgress still be triggered.


In my case, some time it will show log "downloading 8 of 7..." @Anke

See post #60.

1 Like

10 posts were split to a new topic: How do I save a CSV file in the ASD and share it from there?

if i close screen or app before download complete then download complete or not?

I already have DownloadToASD version 2 installed.

I updated to version 4.

Saved Project.
After a few days I see that the version is 2 again.
I changed it again.
After a few days I see that the version is 2 again.
I changed it again.

What causes this problem?

:woman_shrugging: The assets are probably not updated correctly with Companion. The problem should not occur with the compiled app.

Delete the Companion directory on your test device manually or see here:

I have not test device.
I make APK file and make the tests.

If not upload DownloadToASD ver 4 when make APK I have follow error:

ERROR: appinventor/ai_goup2010/Analizer/Radionika.yail line 293: caught exception in inliner for # - java.lang.RuntimeException: no such class: de.bodymindpower.DownloadToASD.DownloadToASD

Post the aia or send it to me via PM.

I try to connect via PM, but not receive response

Thank you! Very nice!

Thanks for this great extension!

I encountered a strange behavior.
When using it with image files, the downloaded images are smaller than the originals but still visible. However, when using it with PDF or MP3 files, the downloaded files are unreadable and stuck at a size of around 4.2 KB.

Any ideas would be appreciated!

Welcome
You are probably trying to read the file before it has been downloaded completely?
Show your relevant blocks!
Also which Android device and Android version are you using for your tests?

Taifun

Here the related blocks:

Testing device is Realme GT Master Ed. (RMX3363) running Android 13 (realme UI 4).

As far as Ican see the blocks look fine
You could prepare a test project as small as possible, which elicits this issue and add it into this thread, so others could check... .
Let's see, what the author of the extension @Anke is saying...

Taifun

Is it a Google Drive link (or what is it)?

It is a WordPress download link, nothing fancy, like: https://www.domain.com/?product=MTMsNDg1OT/doc.pdf or https://www.domain.com/?product=MjA0MzUsNDc/audio.mp3

Try to download a file using the Web component using the same link. I think you will have the same problem. If so, it is WordPress related.

So try Google Drive or your own server.

Thanks @Taifun & @Anke!
I found my mistake: the WP site has protected access by password, and the cookie is not saved after the first access. As a result, the 4.2k file is an HTML file of the protected page info!

Sorry for the noise here, and thanks again, @Anke, for this absolutely useful extension!

By the way, if you have any idea how to save the protected access cookie, I'd appreciate it. :wink:

I have created the APK successfully.
When try to run this APK file is crashed.
Everything worked successfully with version nb197d.

Can I resolved this problem.