File is not saved, permissions are not recognized

I have to add that the error comes directly when writing and no query appears.

delete all files and directories inside the ASD of the companion app (alrernatively uninstall the companion app, then reinstall), remove those 2 blocks and try again

Taifun

I tried it, same result. No file is saved to the SD card. The error is still displayed.

which Android version are you using for your tests?
Taifun

Android 13

you get that error, because the file component does not declare storage permissions anymore in the manifest, see also

which means, do not ask for permission and it works for newer Android versions…

FileSave.aia (2.1 KB)

Taifun

Unfortunately, I haven’t had the time to work on my project for a long time because of my work. Luckily that has now changed again. Thank you for your help so far. I would like to save a file in my mobile phone’s download folder. So not only in the private memory of the app. But that doesn’t seem to be working

You might want to provide a screenshot of your relevant blocks

Taifun

The code is still the same as on my last sent screenshot.

If you want to store in folder /Download, then you should use this filename
/Download/myTest.txt

Taifun

1 Like

I was using File Scope Legacy and getting the 908 Permissions error as always. But it was queried beforehand and I confirmed it.

Try the MFile extension

Taifun

1 Like

I tried.
Test

But here the file is only saved in the App folder. Not in a normal public folder. I’ve tried a lot with the extension, unfortunately nothing has led to success.

Are there any other solutions? Haven’t you had any problems with it yet?

show us the Do it result
Unbenannt2

Taifun

Here is the result:


as you can see yourself, you are storing the file in ASD…
what about using the path /Download/Test.txt to store it in shared storage /Download?
Taifun

That’s right. So far, only saving in the app folder is possible. But as you said, I would like to save the data in the download folder. Previously this was not possible due to the errors mentioned above. How can I save the data in the download folder. Unfortunately nothing has worked for me so far.

previously you used the file component
it does not look like you tried the suggestion from my last post

also you should learn how to use 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

I implemented your recommendation and installed and used the extension. The same problems arise here as well.