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

No issues with that on my Pixel 4XL (Android 12).
Anyway, does the APK work for you?

What do you mean by that? :woman_shrugging:
How is the extension supposed to download a file without knowing the exact path (to this file)?

The APK works but there may be some tiny detail that causes the AV to trigger?

Why is it that this block:
Snap9

Requires the URL to include the filename, and also requires the filename separately? 8 out of 10 cats are going to think the URL should be path only.

See e.g. at post #54:

1 Like

With Date Built: 2020-11-01, I can compile and get the .apk, but when I install it the antivirus tells me it's a Trojan.

With Date Built: 2022-04-19Z , I can't compile, I get compile error.

To do the test I have simply loaded the extension, I have not added download code.

1 Like

Indeed I have seen - but as a Block, repeating the filename twice will not be expected by most users when asked for the URL and filename........

I made another test from scratch using only the v4 extension. It downloads, but it cannot open the downloaded file.

Error No: 2101

Message

The file: /storage/emulated/0/Android/data/appinventor.ai_chrisward2k2.test5/files/Fruit.txt could not be found

..... that would seem to be because "files" is inserted in the ASD Path but the file is downloaded directly to the ASD?

test5.aia (19.9 KB)

borrar_GoogleDrive.aia (27.6 KB)
Date Built: 2020-11-01

Used V4 with these blocks

worked in companion (chromebook app)

Compiled, and worked on device (Google Pixel 4a / Android 13)

try_downloadASD.aia (26.7 KB)

borrar_GoogleDrive_2a.aia (19.6 KB)

@Anke, can you compile this?

try_downloadASD.aia (26.7 KB)

That's a beast :grin:

What is the build date of the V4 you used Tim? Also, can you download Fruit.txt from my website?

image

Extension says file exists, but I am unable to read it (guessing I have a file with 0 bytes ?) however, the image file I showed in my blocks has downloaded just fine, and displays OK

Do you mean 'Fruits.txt'? It is downloaded and it has content - it's 906 bytes.
You can just type the URL into your browser to see the file content
https://professorcad.co.uk/Files/Fruit.txt

That's from google drive, which seems to work without a path issue.

Try this one:
try_downloadASD.aia (18.8 KB)

With which aia? Please post it (again).