After some hours I got it to work.
It was not quite clear to me where and how setWebContentsDebuggingEnabled should be added (been away from b4a since my licenced version 8)
Here is my working code and I am able to debug it with chrome://inspect/#devices (Hoping it may help others,)
I found among other things that localStorage does not work out of the box for the webview but has to be enabled.
I downloaded the libraries WebViewExtras2 & WebViewSettings
Also a library has to be added for JavaObject to work.
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private EditText1 As EditText
Private WebView1 As WebView
Private WebViewExtras1 As WebViewExtras
Private WebViewSetting1 As WebViewSettings
Private WebChromeClient1 As DefaultWebChromeClient
Private JavascriptInterface1 As DefaultJavascriptInterface
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Main")
Dim WVJO As JavaObject = WebView1
WVJO.RunMethod("setWebContentsDebuggingEnabled",Array(True))
WebViewSetting1.SetDOMStorageEnabled(WebView1,True)
EditText1.Text="https://....../index.php "
WebView1.LoadUrl(EditText1.Text)
End Sub
Thanks for your comments
Hi I can debug a the webpage shown by the android chrome browser using chrome://inspect/#devices, but it does not seem to work for a webview.
In android studio one should apparently set WebView1.SetWebContentsDebuggingEnabled(True)
However I cannot find out how to do that on B4A .
Please describe how that can be done