This is what i did
It worked before but now when I run it it gives me an error
Try this, appears to work. You have several blocks in the wrong order.
correctedCWV.aia (78.4 KB)
This is what I did though it shows the warning message when the website has already opened, and pressing cancelled or continue doesn't help, it just leaves a blank screen. that is why I needed that override block. thanks


I have a Webviewer component and am trying to get it to show https://www.google.com/ or anything really but all it does is show a black screen. My code and the black screen is shown here. If it helps the webviewer isn't fully loading but I don't know how to fix it. Plus an error I keep getting is, java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.sunny.CustomWebView.CustomWebView.getIndex(Unknown Source:26) at com.sunny.CustomWebView.CustomWebView.access$200(Unknown Source:0) at com.sunny.CustomWebView.CustomWebView$ChromeClient.onProgressChanged(Unknown Source:4) at WV.Ia0.g(chromium-TrichromeWebViewGoogle.aab-stable-725815837:19) at WV.W7.handleMessage(chromium-TrichromeWebViewGoogle.aab-stable-725815837:236) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7950) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
First create rhe webview, then set it
See for example CustomWebView : An extended form of Web Viewer - #38 by dora_paz
And why are you doing it twice?
Taifun
Also, it looks like you are trying to mix webviewers with customwebviews, which will not work.
I dont know how I missed the duplicate but that was the issue why I dont know but it is fixed thanks.
The tabs are duplicating the same page and the top buttons aren't working.
I suggest you pick one or the other.
But how . . .?
Toss a coin?
If using customwebview with your tab creation blocks, you will probably need a counter to set the id of each new one, and a list to keep track of which customwebviews you have created/deleted.
I got this error: Property getter was expecting a com.google.appinventor.components.runtime.WebViewer component but got a String instead with this code, and the webviewer was only taking up half the bottom and not the whole thing. Why
Another example of mixing customwebview and webview extra.
Use only one.
Is your issue relevant to CustomWebView?
I was using customwebview and last time I had a question like this my topic got forwarded to here. So I was just saving the trouble
Sorry to interfere... I'm adding support for JS alerts but it freezes the webpage, I tried
dismiss JS alert but it does nothing, Here is the code.
A post was split to a new topic: Play web videos like youtube through a webview ? Perhaps a free extension?
I used a screenshot from another post and this is my code, yet the file directory says it is not valid or something
Please provide a screenshot of the exact error message
Taifun