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

  • SEARCH
  • Home
  • 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 6053639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:03:48+00:00 2026-05-23T08:03:48+00:00

I am facing a problem to set the side of webpage loaded in android

  • 0

I am facing a problem to set the side of webpage loaded in android webview.

problem is when i load the login page of the website it gets fitted absolutely well in the webview but wen i click on the hyperlink for new signup then the next page(registration page) loads with 100% scale in the browser and shows horizontal and vertical scroll bars.
i want to fit this registration page according to device width.

how to do this please help me

tried almost all option available in stackoverflow n google

Also tell me how to access the SQL database(save and retrieve information from database) on android device which is operating the website

The code i used is :

Java file :

    mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setLoadWithOverviewMode(true);
    mWebView.getSettings().setUseWideViewPort(true);
     String usrUrl = "http://" + txturl.getText().toString();
    mWebView.setInitialScale(30);
                //mWebView.setMinimumHeight(70);
                //mWebView.setMinimumWidth(30);
    mWebView.getSettings().setSupportMultipleWindows(true);
    mWebView.getSettings().setUseWideViewPort(true);
                //mWebView.setWebViewClient(mWebView.set)
                //mWebView.setWebViewClient(clbk.shouldOverrideUrlLoading(mWebView, usrUrl));
                //mWebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
    mWebView.loadUrl(usrUrl);

In Manifest file :

    <meta name="viewport" content="target-densitydpi=device-dpi, width=240px" />
  • 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-05-23T08:03:49+00:00Added an answer on May 23, 2026 at 8:03 am

    You could do something like this

      webview.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR);
    

    EDIT

    You’ll then need:

      webview.getSettings().setBuiltInZoomControls(true);
    

    to alter the zoom afterwards

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

Sidebar

Related Questions

I'm facing a problem with IE6. I took the toggle function from this website
I am facing a problem with access to HTML elements. On the server side
I am facing problem to set a perticulat value of a custom JComboBox. If
I am facing problem when url is redirected. I set webviewclient and It is
It is bit difficult to explain, but I'm facing problem in pagination of set
I am making android app in which I am facing problem . The overview
I'm facing a problem with the nested set model, with MySQL. I can insert,
I am facing a critical problem i am using ajaxmodalpopupextender in my page. It's
I am working on android chat application. I am facing a problem in send
I am facing problem with an Oracle Query in a .net 2.0 based windows

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.