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 9020475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:01:33+00:00 2026-06-16T05:01:33+00:00

I am trying to load a Wikipedia link in a webview which lays inside

  • 0

I am trying to load a Wikipedia link in a webview which lays inside a fragment.

A sample site site is; http://en.m.wikipedia.org/wiki/Spanish_dollar

If I load it on my mobile browser or even on my desktop, I get the full mobile version with all sections collapsed. However, If I load it in a webview inside a fragment, it does not show the correct “full” mobile wikipedia website. All sections come expanded and the bottom of the site looks different. Also, the menu button on the left side takes up my whole webview, whereas in a normal browser, it takes up 60-70% or less, so you can click the remaining side to go back!

I am dynamically adding the web view into a linear layout inside a fragment like so;

    WebView mWebview = new WebView(mContext);

    mWebview.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

    mWebview.setWebViewClient(new WebViewClient() {
      public void onReceivedError(WebView view, int    errorCode, String description, String failingUrl) {
         Toast.makeText(mContext, description, Toast.LENGTH_SHORT).show();}
    });

    mWebview.loadUrl("http://en.m.wikipedia.org/wiki/Spanish_Dollar");

    layout.addView(mWebview);

Any help or hints would greatly appreciated, thank you!

  • 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-16T05:01:34+00:00Added an answer on June 16, 2026 at 5:01 am

    This is probably because JavaScript is disabled by default. You can enable it by calling WebSettings.setJavaScriptEnabled(boolean).

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

Sidebar

Related Questions

I'm trying to use NodeJS with a C program to http://en.wikipedia.org/wiki/Setvbuf for JS files
I am trying to load an xml file from wikipedia into my flash movie.
Trying to load www.google.com using a WebView that has a subclassed UIViewController that is
I'm trying to load a xml file located on wikipedia but I get this
Trying to load test a site using a tool i dont quite understand against
Im trying to load a new page when i click on a link. Its
Im trying to load a css file for ipad only. I tried this: <link
I have WebView in myLayout and I am trying to load html string like
Im trying to load a flash movie using swfobject which i have been successful
Im trying to load a page I created using ajax, which loads fine and

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.