【发布时间】:2011-11-16 23:34:57
【问题描述】:
public void onCreate(Bundle savedInstance)
{
super.onCreate(savedInstance);
setContentView(R.layout.show_voucher);
webView=(WebView)findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
String url ="https://www.paymeon.com/Vouchers/?v=%C80%8D%B1x%D9%CFqh%FA%84%C35%0A%1F%CE&iv=%25%EE%BEi%F4%DAT%E1"
//webView.loadUrl(url); // Not Working... Showing blank
webView.loadUrl("http://www.yahoo.com"); // its working
}
当我尝试在 WebBView 中加载 URL 时,它只显示一个空白屏幕。如果我加载 Google.com 或 yahoo.com,它工作正常。
【问题讨论】:
-
我现在检查了它的工作。再次检查是否无法使用您的代码添加此代码 webView.getSettings().setUseWideViewPort(true); webView.getSettings().setLoadWithOverviewMode(true);
标签: android webview https android-webview