I always have a blank page inside webview with this code. Any suggestion?
B4X:
Sub show_doc_popup(doc As String )
Dim cd As CustomDialog
Dim WebView1 As WebView
Dim ret As Int
Dim doc1 As String
doc1="<html><title></title><body><p>test<p></body></html>"
WebView1.Initialize("WebView1")
cd.AddView(WebView1, 0, 0, 50%x, 50%y)
WebView1.LoadHtml(doc1 )
ret = cd.Show("", "Close", "", "", Null)
End Sub
OK. I'am sorry for this my stupid error but problem is not html. The same wrong html work inside a webview that is not inside a customdialog.
Problem is webview inside customdialog. Any solution?
Edit also if I change
WebView1.LoadHtml(doc1 ) to
WebView1.LoadUrl("http://www.google.com" ) this not work with customdialog
OK I see. I made the same test but not inside my project and have your same result. So I have to find why inside the project I not have same result.
Thanks