Getting and setting the user agent
In B4A I can set get and the user agent using using Reflector:
Dim r As Reflector
r.Target = webview
r.Target = r.RunMethod("getSettings")
' Get user agent
userAgent = r.RunMethod("getUserAgentString")
' Set user agent
I am trying to run a server with B4J using following article
When i run the B4J program i get the following lines in the log. there is a warning for invalid cookie...
When you make multiple requests with HttpJob, cookies returned from the server are kept across the requests. This might be useful in some cases, but in other cases it is a problem as the web server will not send a new cookie if it is already present in the request.
In the following example a...
I am looking for someone to provide the equivalent B4I code as described in https://www.b4x.com/android/forum/threads/webview-post-and-cookies.112327/#post-700842
if you are interested, please PM and let me know how much will you charge for it
Can someone help provide the equivalent B4I code to the one below
Private Sub InvokeLoginURL(UrlToInvoke As String, UserName As String, Password As String )
If WebView1.IsInitialized = False Then
Activity.AddView(WebView1, 0, 0%y...
I'm trying to use a webview in a B4J application but it only appears to be saving the cookies into memory which is a default setting going by the Java documentation rather than a file so my web application doesn't stay logged in as the cookie is lost when it closes.
I've put the following code...