I want to create an application that stores data in a file (SQLITE).
I would like to be able to open it with another application, or with this same application in the event of a phone change.
Unfortunately, I find that when I want to open it after a reinstallation (not an update) I get this error message. -"Java.io.FileNotFoundException:/storage/emulated/0/documents/alsmi/WBack: open failed: EACCES (permission denied)"
it's as if each application can only open the file it creates itself. That's right?
If so, is there any possibility that several applications can use the same database?
Each app has its own sqlite database, this is not shareable with other apps, as far as I know.
You could use an online resource to store your sqlite.db, and import it to different applications as required...this will be a bit messy especially if you have multiple users....
You need SAF for this on Android 11+. On all other Android versions you (only) need READ permission to open / read it and WRITE permission to save data.