This code snippet is based on tutorial [B4X] TextEditor - Save and load external files here. This is my answer to this question. Instead of writing a text file, we can make use of the same idea to backup and restore our SQLite database. Check post #4 for restore database. Sub Class_Globals...
www.b4x.com