Can someone provide an example of how I could change the user agent in a cordova android application, using Crosswalk 14.43.343.23 and the cordova plugin crosswalk webview?
I have no idea how to get the settings in MainActivity and change the user agent. I know there is a setUserAgentString
for the XWalkView
, but how do I access the view?
Edit: I tried using setUserAgentString
but I got java.lang.UnsupportedOperationException: setUserAgentString