ghadiri
New Member
Hello,
I used a webview in B4A and I open the internal links loaded in the webview in the system’s default browser using the WebView1_OverrideUrl event. However, the WebView1_OverrideUrl event does not exist in B4J. How can I open links in the system’s default browser in B4J since this event is not available?
I used a webview in B4A and I open the internal links loaded in the webview in the system’s default browser using the WebView1_OverrideUrl event. However, the WebView1_OverrideUrl event does not exist in B4J. How can I open links in the system’s default browser in B4J since this event is not available?
B4X:
Sub WebView1_OverrideUrl(Url As String) As Boolean
Dim i As Intent
i.Initialize(i.ACTION_VIEW, Url)
StartActivity(i)
Return True
End Sub