I have following code to display an HTML document
The code seems to work but when I click on the document item to display it in another activity I get path error (see image). This is probably due to the wrond path stored in the table (which you can see on the image).
If the file to display is: MyFile1.html
what is the proper file path to store in SQLite record ?
how can I have MyFile1.html store in a separate folder or subfolder (so those files are separated from the rest) ?
Arthur
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.Title = "Document Content"
Activity.LoadLayout("DocumentFormView_LT")
url = DocumentList.selectedURL
WebView1.Initialize("WebView1")
Activity.AddView(WebView1,0dip, 0dip, 100%x, 100%y)
WebView1.LoadUrl(url)
ProgressDialogShow("Loading " &url)
End Sub
The code seems to work but when I click on the document item to display it in another activity I get path error (see image). This is probably due to the wrond path stored in the table (which you can see on the image).
If the file to display is: MyFile1.html
what is the proper file path to store in SQLite record ?
how can I have MyFile1.html store in a separate folder or subfolder (so those files are separated from the rest) ?
Arthur