B4J Question B4J WebView

oldeast

Active Member
Licensed User
Longtime User
I can't load data into a webview from an SQLite database.
I have checked the query and path to the db
I have added #AdditionalJar: lib/sqlite-jdbc-3.8.11.2
The program compiles but the form loads briefly and closes.

I have recreated the problem in a test file.

Any help appreciated.
sorry if its a stupid error!
 

Attachments

  • Test.zip
    72.9 KB · Views: 241

Daestrum

Expert
Licensed User
Longtime User
Change your line to read
B4X:
DBFileDir = "../Data"
It couldn't find the db file.
or if you want to keep File.DirApp, change it to
B4X:
DBFileDir = File.DirApp & "/../Data"
 
Last edited:
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
Many thanks.. its a project I am rewriting from B4A..so I didn't understand the directory coding.
Well that's my excuse and I'm sticking to it.
 
Upvote 0
Top