I work on an sqlite3-based application designed only for myself. The problem is how not to rewrite a db-file after reinstallations of an apk-file? (I do not want to use an on-line database which would solve my problem.)
I already use this bit, so that the db-file on the computer would not get to the phone.
build.settings
excludeFiles =
{
-- Exclude unnecessary files for each platform
all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", "*.db"},
android = { "LaunchScreen.storyboardc", },
},
But if I install the app again, the db-file which was on the previous version is removed completely.
Another way is to store db-file somewhere before installation of a new copy of the app, and then move the file back to the app’s directory where it was stored. But my device is not rooted, so I got no access to any of those folders:
system.ApplicationSupportDirectory
system.CachesDirectory
system.DocumentsDirectory
system.TemporaryDirectory
Can LFS access Android’s “Internal shared storage” folder?