Android Question An alternative for File.DirRootExternal ?

vmag

Active Member
Hello. On newer versions of android, where you need to save a backup copy of SQLite instead of File.DirRootExternal ?
 

vmag

Active Member
Thank you. I was looking at an example with saving txt to a selected folder, but I thought that copying an Sqlite file might be different from copying txt.
 
Upvote 0

vmag

Active Member
There is an important point related to SQLite dbs
Thank you.
You have an amazing ability to answer questions that have not been asked...
I've been struggling with the SQLite database backup problem for a week now.
The backup always included an intermediate database, not the last one.
After reading the links, I fixed the flaws and now the copying is done correctly, the errors were as follows:
1. Each B4X page opened its own SQL (SQL1, SQL2, SQL3,...) with entries in different tables of the same database.
2. There was no option when creating the database:
B4X:
Main.SQL1.ExecQuerySingleResult("PRAGMA journal_mode = delete")
Thanks again
 
Upvote 0
Top