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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:59:55+00:00 2026-06-10T01:59:55+00:00

I am developing custom browser for android. When browser supports javascript, when you surf

  • 0

I am developing custom browser for android. When browser supports javascript, when you surf the site application gets much more Ram than I use browser without javascript support. Please give an advise how to resolve this problem

public void onCreate(Bundle savedInstanceState) {

 mWebView=new WebView(getApplicationContext());
            mWebContainer=(FrameLayout)findViewById(R.id.web_container);
            mWebContainer.addView(mWebView);
            mWebView.getSettings().setUserAgentString("");
            mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.getSettings().setPluginsEnabled(true);
        mWebView.getSettings().setPluginState(PluginState.ON);
        mWebView.getSettings().setDatabaseEnabled(true);
        mWebView.getSettings().setGeolocationEnabled(true);
        mWebView.getSettings().setSupportZoom(true);
        mWebView.getSettings().setSavePassword(true);
        mWebView.getSettings().setSaveFormData(true);
        }
        ........................................

     private static class HelloWebViewClient extends WebViewClient 
        {

            @Override

            public boolean shouldOverrideUrlLoading(WebView view, String url) 
            {

                 view.loadUrl(url);

                 return true;
            }
        ........................

      protected void onDestroy()
        {

            super.onDestroy();
            mWebContainer.removeAllViews();
            mWebView.destroy();
            mWebView=null;
            System.gc();
        }

created a simple WebView, such as a memory leak.

  • 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-10T01:59:56+00:00Added an answer on June 10, 2026 at 1:59 am

    I’m not sure you have any choice. Memory usage is managed by the webview widget, and so by the system.

    So your app will use a lot of memory.

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

Sidebar

Related Questions

Rather than use WebGL, NaCl, Flash or developing a custom browser plugin, I'm interested
I'm developing a custom widget (inheriting from QWidget) to use as a control. How
I am developing a custom Web Interface Browser for Subversion Repositories with C#/ASP.NET and
I am not just a newbie with Javascript. I am developing a simple site
I'm developing custom Agent for LotusNotes 8.5. I'd like to use iCal4j jar to
I'm developing a custom Adsense report tool using Google Java Client Library for Android
I am developing a custom plugin where is make use of groovys HTTPbuilder everything
I'm currently working on an AJAX site where we use custom HTML tags to
I'm developing custom client/server application that requires client to log in with their username
We are developing a custom .NET directory listing style application for a client 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.