No i didnt, they point on different things in 2 problems which had to combine at some point , thats “perspective”, not “duplicate”…why would i ask same question in two different topics? Why would i do that? I am not saving world, i.am not in a hurry, you read 80 posts but not carefully, there are two different problems that are related and at some point i had to mention other one and questions asked so i said taifun to look other topic that i already showed related blocks to not to duplicate. You blaming me on duplicating while i messaged to not to duplicate. Interesting.. i dont see any positive intentions on your attitude. Did you have a bad day? and you wouldnt say such a thing if you could understand my words in the post that i replied to Taifun, instead of counting my posts to throw me a number. Rudeness is not something i can tolerate..
So Good luck with it anke.
Someone delete this account because i aint comin back
Ok, maybe I misunderstood something, but then what is the problem with answering these questions/requests...
as your post its show version 8 but when i dow and use it show version 9
BTW awesome extension.
Hi,
The application I created worked fine with Android 11 and 12, but no longer works with Android 14 (not tested with 13): I get a black screen at startup.
The application initially uses the DownloadToASD1 extension and downloads a CSV file from the internet.
I tried updating the DownloadToASD1 extension (version 2022-08-09Z), but it didn't change anything.
I changed the extension to ASDDownloader (version 2025-01-24), same problem.
Here's the code:
Do you have a solution to this problem?
Thank's
List the extensions you are using on Screen1
Before this morning, there was still DownloadToASD, and it didn't work.
Now:
The image shows the entire code for screen 1.
The extensions include ASDDownloader only.
The app starts, but apparently the file has not been downloaded, or is not in the right place, because in the visit screen, I do not have the markers corresponding to the data of the .csv file supposed to be downloaded.
A preview of the visite screen:
This extension will download the file in ASD.
So you need to specify the full file path from ASD to read it.
With the DownloadToASD extension, I didn't need to enter the full path.
Does the full path change from one smartphone to another?
If so, it will be complicated to install it on different smartphones.
In screen1 use the DownloadCompleted event to find out if the download was successful
In screen visite in the File.GotText event display the text in a label as test and deactivate all other blocks
You do not need a full path to read a file from ASD
Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
I followed almost all of your instructions, only making changes to screen 1 to begin with, and with that alone, it works:
Thank you very much.
The extension works like a charm, but I want to know how to create a folder inside the Documents folder. In the MFile extension, when I use the block Create Directory
with the path file:///storage/emulated/0/Documents/123
, it successfully creates the 123
folder inside Documents
.
However, when I use your extension and call the Create Folder
block with either "file:///storage/emulated/0/Documents/123"
or "/storage/emulated/0/Documents/123"
, it doesn't create the folder.
What is the best approach to achieve this?
According to the documentation
you can't use this extension to create a folder in shared storage, only in ASD
Just use the MFile extension then
Read the documentations and use the corresponding extensions accordingly
Taifun
That's correct, create folder will creates new folder in the ASD directory.
May be I will update it later to create in a specified path.
Isn't whole idea to provide an extension that downloads files to the ASD ?
Developers can always move it to a shared directory if they need to.
Yes it is, but it will expand the usability of the function.
Follow this.
Also the file name should contain file extension ex. test.csv
Visibility is controlled by the . Visible attribute.
Where do you change that?
Here visibility referred to ShowNotification property which is by default set to false.
Since companion doesn't have android.permission.DOWNLOAD_WITHOUT_NOTIFICATIO permission it will throw runtime error.
To avoid this while testing is companion it is advised to enable show notification so that the runtime error will not throw. In Apk it will not cause any issue.
Shortly after releasing your extension, I gave you several hints regarding required storage permissions. However, I just noticed that your extension doesn't declare any storage permissions at all.
There are at least 16 methods that definitely require storage permissions. And on Android under 4.4 (KitKat, API 19), storage permissions are required in every case (including for the ASD).