I have created an application that loads a list .txt or .csv that is on the internal card in the mobile (/storage/emulated/0/list.txt)
My question is how can I install the application on another mobile and automatically copy the list?
The list cannot be integrated into the application because it is too large and causes problems.
The application cannot work without the list.
You can download list on first run to the ASD, app-specific directory. See also
These blocks provide an example of how to download a file ("anyone can view" permissions) from google drive on the first run of the app.
If you need the file you want to download to remain private on google drive then more work is needed using a google apps script web app.
I'm doing something wrong and it does not work.
I uploaded the file to Google. I also give you the link, everyone can see it.
The file is in Greek but that does not matter. I wrote the following.
Where is the mistake?
Look at my blocks again, and compare them to yours, specifically the Web1.Url
How did you create your Web1.Url?
Isn't the link from the google drive of the file (list.txt) do you uploaded to be shared?
I have copy paste the share link from google drive from my file KALIKRATIS.txt .
The rest are exactly the same as your example
You need your url to be in a specific format that Google Drive understands in order to download a file from Google Drive. The url you need is not the same as the one you get from "Get link", you have to construct it yourself:
https://drive.google.com/uc?export=download&id=<YOUR FILE ID HERE>
exactly as I have done in my blocks. Why can't you copy what I have done ?
I think, my URL is
but does not copy the file to my mobile
I Upload the file to see it
file_from_gdrive.aia (2.2 KB)
It does get the file (tested) but after that have to use file component to read data from that file
file_from_gdrive_1.aia (3.0 KB)
Thanks but I downloaded the above .aia but it did nothing. Did you try it and does it work?
I have android 9
Tested as aia and as apk. Check this I modified to download and read file if first run else read directly file
file_from_gdrive_2.aia (3.4 KB)
It works! , only as apk. Thank you verry match
Can the file aplication file .apk be deleted after installation?
Si si tranquillamente e così si recupera anche un pò di spazio sullo smartphone.
Yes you can, see also
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.