Force webview to display desktop sites

后端 未结 3 2102
悲&欢浪女
悲&欢浪女 2020-12-11 07:05

I have the below webview client which sets the user agent to a desktop browser when we are viewing a page that does not contain the word google in the URL. (Also does other

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 07:50

    You Can try this

    webview.getSettings().setJavaScriptEnabled(true);
    webview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/20100101 Firefox/4.0");
    

提交回复
热议问题