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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:38:09+00:00 2026-06-12T09:38:09+00:00

I am working on a webView in an app, where content which webview load

  • 0

I am working on a webView in an app, where content which webview load changes when a button is pressed (two buttons next and previous , they just change the content in webview). But after pressing 3 -4 times it starts to hang there is nothing printed on logcat, the button remains pressed for 15-20 sec and then the next data is loaded.

I have used these to clear out webview.db and cache:-

context.this.deleteDatabase("webview.db");
context.this.deleteDatabase("webviewCache.db");

webView.getSettings().setRenderPriority(RenderPriority.HIGH);
webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

But still it hangs.How can I speed it up?Please help?

UPDATED:

   public void setWebView(String QuestionParent,String QuestionNumber)
    {


        WebSettings webSettings = questionWeb.getSettings();

        webSettings.setDefaultFontSize(24);

        questionWeb.getSettings().setRenderPriority(RenderPriority.HIGH);
        questionWeb.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);


        questionWeb.loadDataWithBaseURL("",integralParse.htmlParse(questionCode,"mnt/sdcard/faData/"+QuestionParent+"/"+QuestionNumber),"text/html","UTF-8","");
    }

I am using this method on button press. integralParse.htmlParse() method returns a html text .

  • 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-12T09:38:10+00:00Added an answer on June 12, 2026 at 9:38 am

    Are you handling webView navigation properly? See this tutorial on the official docs:

    https://developer.android.com/guide/webapps/webview.html#HandlingNavigation

    if you are just using loadData() then you can try setting hardware acceleration on in the manifest file like this:

    android:hardwareAccelerated="true"
    

    add it at the application level, i.e in the tag of your AndroidManifest.xml file

    After this point, it really depends on your device. If you have a high end device, images will be rendered quickly otherwise they will take time since webView is using webkit hardware acceleration and this depends on your device configuration.

    if you still need speed, you can try making a fully native app without webview. Everything will be smooth as butter. No webkit, no html and much greater control.

    Good luck 🙂

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

Sidebar

Related Questions

I am working on an Android app which displays content in a WebView. The
I'm working on a Python Gtk3 app on Ubuntu, which primarily uses WebView from
I have a webview app tool, which essentially consists of the webview and two
I am working on eBook app.In that i want to put email button to
Hi i'm working with listview onclick load webview this works fine. my issue is
I'm working on an iPhone App that's HTML5/JS displayed in a single UI Webview.
I am working on an iPad app which has an embedded HTTP server listening
I am working on an app for my company. One of the buttons loads
I'm working on a mobile website which is NOT a native iPhone app but
I am working on an app which displays user information on the home 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.