HI
I know its basic task but I don't have luck with completing it.
I would need basic sample in using existing SQLite database in program.
I have DButilis included in my project also vicevi.db is under my project folder,
"an error has occured in line 20 SQL.initialize....unable to open database file"
Please tell me what am I doing so wrong here ?
I know its basic task but I don't have luck with completing it.
I would need basic sample in using existing SQLite database in program.
I have DButilis included in my project also vicevi.db is under my project folder,
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim dbName="vicevi.db"
'DBUtils.CopyDBFromAssets(dbName)
If FirstTime Then
SQL.Initialize(File.DirRootExternal, dbName, True)
End If
Activity.LoadLayout("Layout1")
Dim ListView1 As ListView
ListView1.Initialize("ListView1")
DBUtils.ExecuteListView(SQL, "SELECT text FROM vic", Null, 0, ListView1, True)
End Sub
"an error has occured in line 20 SQL.initialize....unable to open database file"
Please tell me what am I doing so wrong here ?