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
r.RunMethod2("setUserAgentString"...
Hi everyone, i tried to change the user-agent of exoplayer i tried with the code that error wrote here https://www.b4x.com/android/forum/threads/exoplayer-user-agent.86695/#post-548886
Without succes, i don't know if i have to initialize the view or create a layout with the designer.
Error...
Hello, i'm tring to use 2 differents user agent in differents causes. I tried this code, but did'n work.
Sub US1
#if Java
import anywheresoftware.b4a.keywords.B4AApplication;
import android.content.pm.PackageManager.NameNotFoundException;
import...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.