B4J Question [ WebView ] Dont loading url

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
hello everyone !!
i am trying to use webview in my application , webview is not loading any pages ...

code :>
B4X:
#Region Project Attributes
    #MainFormWidth: 805
    #MainFormHeight: 605
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private WebView1 As WebView
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("main") 'Load the layout file.
    MainForm.Show
    WebView1.LoadUrl("www.google.com")

End Sub

'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub

screenshots >
1588571879756.png
1588571955554.png
 
Top