【发布时间】:2016-02-16 21:17:01
【问题描述】:
大家好,我正在尝试将GTV 加载到 Android WebView 中。它可以很好地加载到移动浏览器中,但不能加载到 webview 中。 这是我的代码。
WebView theWebPage = new WebView(this);
theWebPage.getSettings().setJavaScriptEnabled(true);
theWebPage.getSettings().setPluginState(WebSettings.PluginState.ON);
super.onCreate(savedInstanceState);
getSupportActionBar().hide();
setContentView(theWebPage);
WebViewClient client = new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return false;
}
};
theWebPage.setWebViewClient(client);
// client.onPageStarted(theWebPage);
theWebPage.loadUrl("http://gtvqa.com/#!/");
【问题讨论】:
-
有什么问题?请详细说明。
标签: android angularjs webview android-webview