Hi everyone I have a problem with my app, when I click the code button and then click yes in the window that appears it does not download the zipped folder from the drive. Could you please give me a hand.
It is probably downloading the zip, but AI2 is giving the downloaded file a name, because you do not supply one.
Use the Web1.ResponseFilename block to give your downloaded file a name, and you will find the file in your ASD.
in what position should I put the block?
Below your SaveResponse (SalvaRiposta) block.
You only need to put a filename, e.g. myfile.zip
Where are you expecting it to be downloaded on your device?
I expect it to be downloaded
By default [EDIT on Android 10+ devices] the web component will download to the ASD.
... on any Android version.
Correct
I'm sorry I didn't understand what I have to do, could you explain it to me step by step, sorry but I'm new to app inventor
Your downloading blocks look OK, here is an example where I download a file called example.gpx
from Google Drive:
The file has to have Anyone with the link
permissions to be able to download it
When the file is downloaded the GotFile block can show you where it has downloaded to:
when using companion app the file location is:
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/example.gpx
Thanks for the help but in the end it didn't work. However I solved it by making sure that when I click on the button it opens a google drive window from where it is possible to download the files