Android Question unknown member: addwebchromeclient

Hi.. Hello everyone..

I'm newbie here in B4A.. I currently have an issue building up my web view. I would really appreciates any help from the experts/experiences B4A mobile developer here in this forum.

Below are my codes:
addWebChromeClient.PNG

---
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private wvSecComms As WebView
Private wve As WebViewExtras
Dim url As String
url = "https://xxx.xxx" <--- This site has a digital certificate (https://)
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
wve.Initialize(wvSecComms)
wve.addWebChromeClient(wvSecComms, "WVE") <--- This is the line where the issue triggered!
wvSecComms.LoadUrl(url)
ProgressDialogShow("Loading...")
End Sub
---

What went wrong, chaps?

Thanks.
 

Attachments

  • addWebChromeClient.PNG
    addWebChromeClient.PNG
    23.8 KB · Views: 171
Last edited:

Ivica Golubovic

Active Member
Licensed User
You are using library version 2.2 and following the tutorial for version 1.4. There is no addWebChromeClient method in version 2.2. Find a tutorial for WebViewExtra2.
 
Upvote 0
You are using library version 2.2 and following the tutorial for version 1.4. There is no addWebChromeClient method in version 2.2. Find a tutorial for WebViewExtra2.
Hi @Ivica Golubovic .. I hv already gone through the tutorial and changed my codes accordingly as below..
1640869062658.png

Tested and run the codes.. Seems there is no error on the code. But unfortunately, I still got the white blank screen for my https site.. I have tested on other https site like https://google.com and worked like a charm.. Does digital certificate not properly configured on the server could be the caused?
 
Upvote 0

Ivica Golubovic

Active Member
Licensed User
Okay, there are a lot of advanced settings for WebView and WebViewExtra so it's very difficult to get a conclusion based on your brief explanation. Since you say you are newbie and do not have an already acquired routine in using the WebViewExtras library, I would recommend you to download the UltimateWebView library and BAExample from the link below and test if your link will work properly through BAExample. WebViewExtras was a top-notch library at the time, but since it hasn’t been updated in a long time, some methods and events aren’t functional on newer SDK versions. That's why I decided to create and later publish the UltimateWebView library.

 
Last edited:
Upvote 0
Okay, there are a lot of advanced settings for WebView and WebViewExtra so it's very difficult to get a conclusion based on your brief explanation. Since you say you are newbie and do not have an already acquired routine in using the WebViewExtras library, I would recommend you to download the UltimateWebView library and BAExample from the link below and test if your link will work properly through BAExample. WebViewExtras was a top-notch library at the time, but since it hasn’t been updated in a long time, some methods and events aren’t functional on newer SDK versions. That's why I decided to create and later publish the UltimateWebView library.

Thank you @Ivica Golubovic .. At least I know what to look for.. Really appreciated for your time.. Will have a look on the references provided..
 
Upvote 0
Top