I have added a SQLite database to the files folder of a project and when the DBUtils.CopyDBFromAssets function is called
(on the line File.Copy(File.DirAssets, FileName, TargetDir, FileName)
it errors out with the message:
java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/new.db: open failed: ENOENT (No such file or directory)
Unfortunately you don't give enough information.
How, exaxtly, looks like the line with DBUtils.CopyDBFromAssets("new.db") ?
It schould be: DBDir = DBUtils.CopyDBFromAssets("new.db")
DBUtils.CopyDBFromAssets retuns a string with the name of the directory.
DBDir should be declared somewhere as a string.