I want to implement backup and restore of a database as a feature in my app. I am using kotlin and compose.
I understood that i need to set database to journal mode and to checkpoint it. After that my problem is how to get the file and copy it in another location. I can see that i need to use intents and that i dont need to ask permission after android 11. I want the user to choose where the file is going to be saved and from where to restore. Can someone help me?