此方法适用于其他网页,但one除外。结果与WebChromeClient相同,并且android:hardwareaccelerated =“true”,如SO上的其他一些问题所示。
这些4只是在Eclipse LogCat中继续重复......
Unknow chromium error: -337,
Could not parse Spdy Control Frame Header,
Recived data frame for invalid stream 15,
external/chromium/net/spdy_session.cc:1058: [0939/183331:WARNING:spd]
这是我的源代码......
package com.mypackage.pk;
import com.mypackage.pk.R;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class F1Activity extends DashboardActivity
{
private WebView webView;
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView (R.layout.activity_f3);
setTitleFromActivityLabel (R.id.title_text);
webView = (WebView) findViewById(R.id.webView5);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.loadUrl("https://omega.ffzg.hr/");
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
view.loadUrl(url);
return true;
}
});
}
}
答案 0 :(得分:0)
我认为那是因为该网址是https。这是一个关于如何处理它的博客: