Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid WebView not rendering webpage correctly
    primarykey
    data
    text
    <p>I have a strange problem with my webview. I have a basic webview that I use to display webpages. This works the majority of the time, but there is one site in particular that does not render. I am not sure how to begin to debug this problem. Here is my initialization code for the webview:</p> <pre><code> webView = (WebView) findViewById(R.id.rss_webView); webView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } }); webView.setWebChromeClient(new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { pb.setProgress(progress); if (progress == 100) pb.setVisibility(View.GONE); else pb.setVisibility(View.VISIBLE); } }); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setSupportZoom(true); webView.loadUrl(URL); </code></pre> <p>The URL that is having problems is: <a href="http://twitter.com/AdamSchefter/statuses/236553635608285184" rel="nofollow">http://twitter.com/AdamSchefter/statuses/236553635608285184</a> </p> <p>This page (and other twitter pages) render as a blank gray square on the screen with no content.</p> <p>I have noticed that if I open the url with my normal Android browser it gets redirected to a mobile version. The webview does not do this as far as I can tell. When setting breakpoints in the shouldOverrideUrlLoading() method, I don't receive any redirect urls.</p> <p>I have scanned logcat for any indication of error. I don't think the webview performs any logging to log cat at all (other than a not that a webview was loaded) because there is nothing there.</p> <p>I am not sure how to track down this issue. Any thoughts?</p> <p>I have a lot of twitter sources that I need to display and I don't have control over the URL.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload