Android Question Webview Url to a layout text

trepdas

Active Member
Licensed User
Hello Good People.

I need to simply display a url in a text layout whenever webview finish loading a page.

I used this code :
B4X:
Sub webview1_pagefinished(success As Boolean,url As String)
   
    If success=True Then
   
    txturl.Text=WebView1.Url
End If

End Sub

came out with java error.

how this is done ?
 

sfsameer

Well-Known Member
Licensed User
Hello Good People.

I need to simply display a url in a text layout whenever webview finish loading a page.

I used this code :
B4X:
Sub webview1_pagefinished(success As Boolean,url As String)
  
    If success=True Then
  
    txturl.Text=WebView1.Url
End If

End Sub

came out with java error.

how this is done ?
it's suppose to be :

B4A:
Sub webview1_PageFinished (Url As String)
    txturl.Text=Url
End Sub
there is no "success"
 
Upvote 0
Top