SOLVED
never mind, it was WebView.Initialize() statement causing problem. I removed it and it works.
This code was for testing, but now I replaced fixed HTML with the HTML which supposed to stored in TXT field in a table. I want to grab html code and place it in LoadUrl call so I can display a html page.
Sub Activity_Create(FirstTime As Boolean)
SQL1.Initialize(Main.dbFileDir, Main.dbFileName, True)
Activity.Title = "Document Content"
Activity.LoadLayout("DocumentFormView_LT")
'DocUrl = "file:///android_asset/" & DocumentList.selectedFile
DocSource = SQL1.ExecQuery("SELECT HtmlSource FROM mDOCUMENTS WHERE ID="&DocumentList.SelectedRecord)
WebView1.LoadHtml(DocSource)
'WebView1.LoadHtml("<html><body>Hello World<br></body></html>")
ProgressDialogShow("Loading " &DocUrl)
End Sub
this code instead of html page displays :
android.database.sqlite.SQLiteCursor@412a363
any ideas ?
Arthur
PS>
here is the html code sored in database:
-------------------
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>UserHtml_0005</title>
</head>
<body>
this is a used HTML document NR 4<br>
<br>
here is the image<br>
<br>
<img style="width: 960px; height: 960px;" alt="pituitary gland"
src="file:///D:/DATA/DEV/PROJECTS_B4A/EDBQ_MOBILE/Files/n32.jpg"><br>
</body>
</html>