Android Question Database error

anaylor01

Well-Known Member
Licensed User
Longtime User
Here is the error I get on the emulator:
An error has occurred in sub:
main_activity_create(B4A line: 68)
sql1.initialize(file.dirassets,"Databaseandroiddatabase.sqlite. sqlitecantoopendatabaseException: Unable to open database file
Here is line 68 of the code that is causing the error:
SQL1.Initialize(File.DirAssets, "Database.db", True)
I have created a database called Database with SQLiteStudio and added it to the files in B4A.
Any ideas?
 

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0
Top