I am trying to directly import an SQL file from a SQLite database into Basic4Android. I exported a .sql file and then I loaded the SQL file into the Basic4Android assets in the IDE.
Then I put this in my Process_Globals
Dim access As SQL
access.Initialize(File.DirAssets,"example.sql",True)
However the application crashes immediately on load when I try to run this code.
There's two things that I think could be wrong:
- File.DirAssets is read-only and perhaps SQL can not be used from a read only directory. If that is the case then how else would I import an SQL file into the application.
- Possibly the databases are incompatible but I would think they should be compatible