B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-texteditor-save-and-load-external-files.132731/#post-838166 List of classes or libraries that can be used to access secondary storages: ContentChooser (Phone libray) - allows the user to select a resource or file using external...
This is a B4i and B4A example, which demonstrates various external files related tasks. The behavior is not exactly the same as the platforms capabilities and behavior are different. B4A Load external files, including online files, using ContentChooser. Save to an external target, using...
Save As will not really do it for automatic saving and retrieveing of system config files that needs to survive if user uninstalls and later reinstalls an app.
If LegacyExternalStorage really is gone its a big problem if files where stored there and a later version of an app no longer can retrieve those files. Very inconsistent of Google. There needed to be a forever period where one could at least read them.
Save As will not really do it for automatic saving and retrieveing of system config files that needs to survive if user uninstalls and later reinstalls an app.
If that is your use-case, then maybe one of these will work:
1) Allow the user to export the settings by creating an email (using email intent) with the config files as attachments sent to the user themself. This way they can import them at a later time.
2) Save the config files to the users "Google Drive". This way they can import them from that too.
Allowing the user to do something don't mean they will do it.
My experience is that they have no idea they'll change their mind and reinstall the app later when they uninstall it, so will take no precaution for such a case unless forced.
Maybe you could pop up a reminder to save the settings every once in a while (if the settings changes since the last backup) and have a "Backup Now" button on that reminder so it will be a no-brainer for the user do it right then and there.
It's not exactly the solution you are looking for, but maybe it's better than having nothing.