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

The Archive Base Latest Questions

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

We have a few android ‘optimized’ pages in our site and they do indeed

  • 0

We have a few android ‘optimized’ pages in our site and they do indeed come up quite nicely in the default browser. In my application WebView, it comes up looking like it doesn’t know anything about CSS.

For the record, I do have javascript enabled. Code is below. I haven’t examined the CSS in-depth, but I know, we had a guy come in and, at least, optimize these pages for mobile sized browsers. I’m concerned that in doing so, he might have done something that only works in the default browser.

Thoughts?

public class MyTest extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        try
        {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);

            Locale locale = Locale.getDefault();
            ConnectivityManager connectivityManager = (ConnectivityManager) this
                    .getSystemService(Activity.CONNECTIVITY_SERVICE);

            NetworkInfo networkInfo = connectivityManager
                    .getActiveNetworkInfo();

            WebView webView = (WebView) findViewById(R.id.web_view);
            webView.setHorizontalScrollBarEnabled(false);
            webView.setVerticalScrollBarEnabled(false);
            webView.getSettings().setJavaScriptEnabled(true);

            webView.setWebViewClient(new WebViewClient()
            {
                @Override
                public boolean shouldOverrideUrlLoading(WebView view, String url)
                {
                    view.loadUrl(url);
                    return false;
                }
            });

            if ((null != networkInfo) && (networkInfo.isConnected()))
            {
                String url = ApplicationProperties.BASE_URL;
                webView.loadUrl(url);
            }
            else
            {
                webView.loadUrl("file:///android_res/drawable/no_connection_page_en.html");
            }
        }
        catch (Exception Ex)
        {
            Log.v(ApplicationProperties.APPLICATION_NAME, Ex.getMessage());
        }
    }
}
  • 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-23T11:53:48+00:00Added an answer on May 23, 2026 at 11:53 am

    For the record:

    Seems I was authenticating improperly. I was using a http::@sub.domain.com. Didn’t fail, but once I switched to WebViewClient onReceivedHttpAuthRequest, everything started working correctly.

    Bizarre.

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

Sidebar

Related Questions

Quick question. I have a few apps in the android market. They have all
I have tried few on my android phone and they only highlight HTML/Javascript even
I created an Android project a few months ago and now have to automate
I'm new in android and I have few questions to ask. Is it possible
I have a few questions (so far) with the the LocationManager on Android and
I'm new to Android and CouchDB and have a few questions. Is it actually
I have a few questions regarding android source code download, repo / git. This
I have a few videos for Android. My app plays it by code: Intent
I have few doubts regarding transparent AlertDialog box in android.I have created the alert
I have few doubts regarding the 3d Animation Image View on android.i have created

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.