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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:14:21+00:00 2026-06-14T02:14:21+00:00

My application is to creating web views dynamically, also setting dynamically created web views

  • 0

My application is to creating web views dynamically, also setting dynamically created web views width, height and x,y positions. I am setting the width, height,x,y positions and calling the web view client on custom dialog . But the web view client not calling. when i tried without using the web view client the specified url loads in the default browser. But my main requirement is to re-size the web view and loading it in my activity. When running the program web view showing with white color but the url not loading also the web client and should override method not calling.
My codes are given below

try
{
    wv[tmpm].getSettings().setJavaScriptEnabled(true);
    wv[tmpm].setWebViewClient(new Myweb());
    //wv[tmpm].setWebViewClient(new Myweb);
    //wv[tmpm].loadUrl(url);
}
Myweb class given below

private class Myweb extends WebViewClient
{
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        Log.d("In extends webview client","HIiiiiiiiiiiiiiii");
        view.loadUrl(url);
        return true;};
    }
}

the log in shouldoverrideUrl not showing in logcat, also when i touch the web view i got the error “Should not happen: no rect-based-test nodes found” in log cat. Pls help me. Thanks in advance.

  • 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-14T02:14:22+00:00Added an answer on June 14, 2026 at 2:14 am

    i solved myself……..
    correct code given below..

     try
    
       {
    
          wv[tmpm].setWebViewClient(new WebViewClient());
          wv[tmpm].requestFocus();
          wv[tmpm].getSettings().setJavaScriptEnabled(true);
          wv[tmpm].loadUrl(url);
       }
    

    Myweb class given below

     private class Myweb extends WebViewClient
         {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                try
                {
                    Log.d("In extends webview client","HIiiiiiiiiiiiiiii");
                    view.loadUrl(url);
                }
                catch (Exception e) {
                    // TODO: handle exception
                    e.printStackTrace();
                }
                return true;
    
            }
            @Override
            public void onPageFinished(WebView view, String url) {
                try {
    
                } catch (Exception we) {
                    we.printStackTrace();
                }
                super.onPageFinished(view, url);
            }
    
         }  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a web application where users can upload/download/view online pdfs. I want
I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I'm creating a web application using spring mvc. I have started to incorporate the
I am creating a web application in ASP.net/VB.NET and I have an issue with
I am creating a web application that will have many users. Each user has
I am creating a web application in Java in which I need to run
I am creating a web application with MVC3 and MEF. I am attempting to
I am creating a web application framework, in which I am providing support for
I am creating a web application which has a few management screens, where a
I am creating an web application and I at the point that i am

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.