Android Question Webview and PageFinished

AlpVir

Well-Known Member
Licensed User
Longtime User
I absolutely cannot understand why the log ("this never appears") does not appear nor the instructions that follow, relating to the disappearance of the circular seek bar.
Thank you in advance

B4X:
    '---  circular seek bar
    TimerCircolare1.Enabled = True
    csb1.Visible=True
    csb1.BringToFront
    prog1=0
    '--- cancello la cache
    Dim o As Reflector
    o.Target = Webview1
    o.RunMethod2("clearCache","True","java.lang.boolean")
    Webview1.LoadURL(URL)
    Wait For Webview1_PageFinished (URL As String)
    Log("this never appears")
    TimerCircolare1.Enabled=False
    csb1.Visible=False
 

DonManfred

Expert
Licensed User
Longtime User
Is "Webview1" the prefix you used in WebView?
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
Thank you so much!
I had declared :
B4X:
 Webview1.Initialize("WB")
Now I have corrected :
B4X:
Wait For WB_PageFinished (URL As String)
or
B4X:
Sub WB_PageFinished(URL As String)
    TimerCircolare1.Enabled=False
    csb1.Visible=False
End Sub
 
Upvote 0
Top