The file is being saved in the App's Private directory, so nobody can actually see it unless they have a security-breaking (often PC-based) program.
There is a lot of good info on the forum, but much of it concerning files and similar is not recent enough to cover the latest Google Android Security Measures - even the hint for the App Inventor Create File Block is unfortunately wrong.
Do you like the idea of cutting-out the middle man (TinyDb)? What is the CSV for - is it going to be distributed to others? If so, it will need to be saved in a Shared folder. If not, it's already being saved in the right place.
Ok I understand. What do you mean by "Do you like the idea of cutting-out the middle man (TinyDb)?" ?
The CSV is indeed intend to be distributed after (sharing it by mail for example, if this is what you asked)
What I mean is, my example does not store the data in TinyDb and then store the same data in a CSV file - it simply stores in the CSV file, making the complexity of store and restore from TinyDb redundant.
...then it needs to be saved in an Android Shared Folder. Unfortunately, for now we may have to ask for the Permission to write to a shared folder. (A mistake in the AI2 code).
...by the way, we notice you have in your code used 'legacy' scope. That is only for Android 10 and below.
So you can see that the file should be saved in the Android folder 'Documents'. You will be able to see it there! App needs to be an APK though, Companion special cases file storage.
An extension made by PowerUserAnke find on the same page where you probably got the map. It allow the App to get access to the phone storage if I understand well (but not sure to use it right)
Yes ok I understand it by reading the map you show to me. Which class is considered my App : "Own app" or "Other app" in the shared Storage/Write block in the map ?
Actually in that Demo aia, I make the code for every problem, then I clear the blocks. But i don't delete the components, as I might require them in another project later.
No sorry, too complex to adapt to the bloks made by @ChrisWard and for which I would keep because I get a CSV in the perfect format. But thanks for the help