I have granted all permissions. However, the app does not recognize this and always gives the error that it does not have write permission. The file cannot be found on the device either. Nevertheless, the text can be read. Why and where is the file. I’ve tried every scope. No file is saved anywhere. My blocks:
Your file is in the ASD, you can find if for example using Total Commander…
Ask for permission in Screen Initialize event
You only have to ask for write permission
Further things to try:
set the Default File scope in the Screen properties to Legacy and the file scope of the file component to App, also remove the / of the filename
I tried. No file is written to the SD card. I get error 908 when asking for permission. If I omit / , the file is always saved in the app storage, isn’t it? It will certainly also be saved there, because the success message will appear and the text can be read out.
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
which Android version are you using for your tests?
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)