B4J Question WebView starting in Mobile mode

tznikos

Member
Licensed User
Longtime User
Hi,

I want the web server to consider the webview as mobile

Thanks
 
Last edited:

tznikos

Member
Licensed User
Longtime User
I found this

setUserAgentString('Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3')

But I don't know-how declare on WebView object,

Is something like this?

Dim joWV As JavaObject = WebView1

joWV.RunMethodJO("getEngine", Null).RunMethod("executeScript".......
 
Upvote 0
Top