In the Demo that AB provided with the library you can find what you are looking for and adjust it to your needs..
B4X:
' if you start the app as: http://localhost:51042/demo/index.html?login=demo&pwd=demo
Dim params As Map = ws.UpgradeRequest.ParameterMap
Dim login(0), pwd(0) As String
If params.IsInitialized Then
login = params.GetDefault("login", Array As String(""))
pwd = params.GetDefault("pwd", Array As String(""))
End If
Log(login(0) & " " & pwd(0))
Isnt the .ShowExternalDocument method that he is trying to call external to ABMaterial though. I'm under the impression that will open a browser to that link.
In the Demo that AB provided with the library you can find what you are looking for and adjust it to your needs..
B4X:
' if you start the app as: http://localhost:51042/demo/index.html?login=demo&pwd=demo
Dim params As Map = ws.UpgradeRequest.ParameterMap
Dim login(0), pwd(0) As String
If params.IsInitialized Then
login = params.GetDefault("login", Array As String(""))
pwd = params.GetDefault("pwd", Array As String(""))
End If
Log(login(0) & " " & pwd(0))