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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:12:17+00:00 2026-05-27T14:12:17+00:00

I have a simple webview which loads a page. This page has a few

  • 0

I have a simple webview which loads a page. This page has a few links that opens within the webview. That’s what it supposed to do, so it’s working all fine.

But there is one single link from that page which should load as a popup, so I want it to open in the normal browser when people click it. But as I stated, all links are opening in the webview, so that link does it also.

My question is, how can I make this link open in the normal browser as a kind of a popup? Is it even possible? The link is variable so it’s changing always, it cannot be hardcoded within the application to open in a new browser browser.

Is it possible and how can I do it?

  • 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-27T14:12:18+00:00Added an answer on May 27, 2026 at 2:12 pm

    Here’s an example of overriding webview loading to stay within your webview or to leave:

    import android.app.Activity;
    import android.os.Bundle;
    import android.webkit.WebView;
    import android.webkit.WebViewClient;
    
    public class TestWebViewActivity extends Activity {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
    
            WebView webView = (WebView) findViewById(R.id.webview);
            webView.setWebViewClient(new MyWebViewClient());
        }
    }
    
    
    class MyWebViewClient extends WebViewClient {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            if(url.contains("somePartOfYourUniqueUrl")){ // Could be cleverer and use a regex
                return super.shouldOverrideUrlLoading(view, url); // Leave webview and use browser
            } else {
                view.loadUrl(url); // Stay within this webview and load url
                return true;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a simple helloworld app with a WebView which has a link
I have a simple javaFX application that loads a webpage in a WebView componant.
I have a WebView into which I'm loading the facebook sharer php page. This
I have a very very simple webview, that loads a URL that never changes,
I have a very simple Mac Cocoa app that just has a Web View
I have simple win service, that executes few tasks periodically. How should I pass
What i have here is a simple webview activity that when loaded it auto
I have a simple WebView-based activity that follows the Hello, WebView example to enable
I have simple front controller plugin which contains this code: http://pastebin.com/m155c59b0 When session expire
I have simple WebView code like this: WebView wv = (WebView) findViewById(R.id.webview1); wv.loadUrl(http://en.wikipedia.org/wiki/Book); But

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.