这种方法适用于其他网页,除了这个。结果与 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;
}
});
}
}