Android Question load webview in background

csjoe72

Member
Licensed User
Longtime User
I use b4x pages.
How can I load the desired website into the webview running in the background?
It loads, but only when the page is appeared, so I have to wait for the content.
(I dont't want to wait)
Thanks.

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("Basepanel")
    X_Weather.Initialize
    B4XPages.AddPageAndCreate("B4X_Weather", X_Weather)
    X_Weather.WebView2.LoadUrl("https://www.idokep.hu/elorejelzes/Budapest")
End Sub



B4X:
Sub Class_Globals
    Private Root As B4XView 
    Public WebView2 As WebView
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("Weather")
 End Sub
 
Last edited:

drgottjr

Expert
Licensed User
Longtime User
no see, no render.

what does this mean:
webview running in the background
??
 
Upvote 0
Top