Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在WebView中从网站停用移动内容_Android - Fatal编程技术网

Android 在WebView中从网站停用移动内容

Android 在WebView中从网站停用移动内容,android,Android,我的代码: WebView webView = new WebView(this); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("http://www.preisjaeger.at"); setContentView(webView); 我下载的网站在Webview上有appers,但只包含移动设备的内容 所以我的问题是:如何停用移动

我的代码:

            WebView webView = new WebView(this);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl("http://www.preisjaeger.at");
        setContentView(webView);
我下载的网站在Webview上有appers,但只包含移动设备的内容


所以我的问题是:如何停用移动内容?

移动内容正在加载,因为该网站检测到您在移动设备上。我建议尝试欺骗浏览器字符串,使该站点认为您不在移动设备上


使用方法
webView.getSettings().setUserAgentString()

asnd我应该添加什么字符串?您可以尝试欺骗Chrome,或者只是创建自己的用户代理字符串。