最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kotlin - How do i backup and restore a room database on android 11+? - Stack Overflow

programmeradmin3浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论