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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:51:54+00:00 2026-06-11T16:51:54+00:00

I have a problem with the webview, as it sometimes loads the content and

  • 0

I have a problem with the webview, as it sometimes loads the content and sometimes not.
I have noticed that there is no problem with the 2.2 and 2.3.3 Android versions, only with the 4.0.4 Android versions.

My code is:

public class MywebviewActivity extends Activity {

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    this.getWindow().requestFeature(Window.FEATURE_PROGRESS);
    setContentView(R.layout.mywebview);
    final Activity MywebviewActivity = this;        
      // Makes Progress bar Visible
      getWindow().setFeatureInt(Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON);
      android.webkit.WebView wv = 
      (android.webkit.WebView)this.findViewById(R.id.myWebView); 
      wv.setWebChromeClient(new WebChromeClient() {     
      public void onProgressChanged(WebView view, int progress)   
      {
       //Make the bar disappear after URL is loaded, and changes string to Loading...
          MywebviewActivity.setTitle("Loading...");
          MywebviewActivity.setProgress(progress * 100); //Make the bar disappear after URL is loaded

      // Return the app name after finish loading
      if(progress == 100)
          MywebviewActivity.setTitle(R.string.web_app_name);
        }
  });

      wv.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
      wv.getSettings().setJavaScriptEnabled(true);
      wv.setHorizontalScrollBarEnabled(false);
      wv.loadUrl("http://mypagename.com/android/server/app/ver10/page1.html");

    }

public void onBackPressed() {
    android.os.Process.killProcess(android.os.Process.myPid());
    return;
}
  • 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-11T16:51:56+00:00Added an answer on June 11, 2026 at 4:51 pm

    Hardware acceleration carries out all drawing operations that are performed on a View’s canvas using the GPU .
    Check whether the application is hardware accelerated:

    View.isHardwareAccelerated()

    returns true if the View is attached to a hardware accelerated window. If it returns false
    , add

    android:hardwareAccelerated =”true”

    for the <activity

    element in Manifest file .

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

Sidebar

Related Questions

The only problem i have is, that i want to reload some images in
I have problem, i can't play video in webview by html5 here,my code webView
I have a strange problem with my webview. I have a basic webview that
I have facing a big problem with my webView application for android. It was
I have a problem with webView. As you can see on the picture there
I have problem with people double clicking links in my WebView. Sometimes the scripts
I have a problem with my simple android aplication that use GPS cords. My
I have put a web view inside a uitableviewcell Problem : didSelectRowAtIndexPath is not
I have problem SIMILAR to preventing form data reposting, but not quite the same
I have facing problem in scrolling webview in verticlly, actually i have scroll view

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.