webviewextras2

  1. J

    Android Question WebviewExtras and Javascript variables

    I have the following definitions: Dim WVExtras As WebViewExtras ... 1) WVExtras.addJavascriptInterface(WebView1, "B4A") 2) WVExtras.addWebChromeClient(WebView1, True) Execution: 3) js = "B4A.CallSub('processHTML', document.getElementById(""" & RankCol & """).style.color='red')"...
  2. S

    Android Question WebViewExtras2 is crashing immediately

    Hi I have tested WebViewExtras2 sample application in ANDROID emulator API 26 and XIAOMI MI MAX API 24. The application is immediately crashing. Hope, the signature ShouldInterceptRequest(URL as string) has changed to ShouldInterceptRequest(WebResourceRequest request) Can we get the updated...
  3. GERSON PINTO

    Android Question How to force WebView to skip images?

    Hello guys! I am using the webviewExtras2 library and b4A 9.02 WebView1.GetSettings.GetLoadsImagesAutomatically=False cause compile error (attached) I found in stackoverflow this code: webView.getSettings().setLoadsImagesAutomatically(false); What is wrong with my code? Any help?
  4. LucaMs

    Android Question WebViewExtras2 - how to play an online audio file?

    I tried: Dim url As String url = "https://interactive-examples.mdn.mozilla.net/media/examples/t-rex-roar.mp3" Dim jscript As StringBuilder jscript.Initialize jscript.Append($"var audio = new Audio('${url}');"$) jscript.Append(CRLF) jscript.Append("audio.play();") Log(jscript.ToString)...
  5. R

    Android Question Upload in webView (WORK)!

    Hi all, I found a way (in a somewhat accidental) to run the file upload in a WebView. I have used WebViewExtras and WebViewExtras2, but in the .b4a project file I have declared FIRST WebViewExtras2 and THEN WebViewExtras . When, the code are whis: Sub Globals 'These global variables will...
  6. K

    Android Question WebviewExtras2 AddJavascriptInterface Not working

    Hello every one. in the folloowing code I use WebviewExtras2.AddJavascriptInterface to call a sub from B4a . but it never works , and I cant figure out the problem with this code and why the 'MyFunction' never gets reached Also I'm not sure about the first parameter to the...
  7. Seneca

    Android Question Issue with .GetContentHeight from the WebviewExtras and WebViewExtras2 library

    Hi, I have been testing WebViewExtras and WebViewExtras2 to calculate the height of a WV and it occurs to me that the height is calculated correctly only if I execute it in Debug mode and I put a break point in the _pagefinished event (line #36 of the example). In "release" mode it is not...
Top