I only use Inventor every few years, and Androids seem to change every time I try to use them.
I'm trying to read a text file with the FILE gadget, and for the life of me, I haven't been able to specify a path that works.
If I connect my phone to my desktop, Windows Explorer shows my file in
"This PC\Galaxy S21 5G\Internal storage\AppInventor"
I've tried a dozen different paths and the all cause "can't find file" errors.
For example, I've tried
/AppInventor/test.txt
/storage/emulated/0/AppInventor/test.txt
/Internal Storage/AppInventor/test.txt
A ten minute quickie has already consumed a couple of hours!
You cannot access non-media files outside of the ASD or Shared folders (/Documents or /Download). And those files must have been created by the app itself. Otherwise you need SAF.
You cannot access the root dir of the external storage (/storage/emulated/0/) or any arbitrary subfolder of it like this (at least not on Android 11+):
I used the simple path "test.txt" and it apparently found the file in the private storage, but rather than reading the file, i got "com.google.appinvent....Fila@952a5c8" when I thought I should get the text within the file.
The success I had was using data stored in the apps private area, and the problem with the "com.google.appinvent....Fila@952a5c8" was due to loading the filename instead of the file contents.
Although that reads a file from my apps' private storage, finding that location is too hard given the complex filepaths. I really want to use /Documents, which I can't figure out.