I am attempting to create a SQLite database.
My Code in Service_Create:
However, I receive the following error:
My Code in Service_Create:
B4X:
' Make Database directory
Dim TargetFolder As String
If File.ExternalWritable Then TargetFolder = File.DirRootExternal Else TargetFolder = File.DirInternal
File.MakeDir(TargetFolder, "/products/data/")
' Setup SQL
SQL0.Initialize(File.DirRootExternal, "/products/data/products.db", True) <--- ERROR HERE
However, I receive the following error:
B4X:
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database