Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8424477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:00:10+00:00 2026-06-10T04:00:10+00:00

I have a strange problem with my webview. I have a basic webview that

  • 0

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:

    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);

The URL that is having problems is: http://twitter.com/AdamSchefter/statuses/236553635608285184

This page (and other twitter pages) render as a blank gray square on the screen with no content.

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.

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.

I am not sure how to track down this issue. Any thoughts?

I have a lot of twitter sources that I need to display and I don’t have control over the URL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:00:13+00:00Added an answer on June 10, 2026 at 4:00 am

    Ok done by adding below line in my code

    webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; U;`
    Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like
    Gecko) Version/4.0 Mobile Safari/530.17");
    

    I got it from this post at stackoverflow Problems loading mobile.twitter in webview.

    android mobile twitter page in webview not opening?

    Also, if it’s not redirecting you to the mobile version of twitter, you can just append mobile to it, i.e. mobile.twitter.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is very strange to me... I have a simple WebView that loads and
I have a strange problem getting the color of the point that was touched.
I have a strange problem. I do this query in a node.js server using
I have strange problem: when I use mu repository stub I get strange exception:
I have a strange problem: I have a CSV file that I read correctly
I have a strange problem using a MapView in Android. It works fine until
I got some strange problem with my WebView. The problem is that I can't
I have strange problem with run .exe program in my WebApplication. It works fine
I have a strange problem that I've never encountered before, I have data in
I have a strange problem that I can't get my head around: I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.