I have an app that creates a directory for backup files on the external storage and automatically creates backup files when the user exits the app. One backup file per week is created and then one backup file that is overwritten all the time with latest info.
- The backup files can't be located in
getExternalFilesDir
since they needs to survive that the user reinstalls the app. - I can't use
MediaStorage
because it's not an image or video. - I can't use
Storage Access Framework
to ask the user every time he exits the app to save a backup file.
So how to automatically create persistent backup files with the new Scoped Storage?
(I also need to list all created backup files, if the user wants to restore one of them.)