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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:50:27+00:00 2026-06-11T19:50:27+00:00

I use AdMob service to display advertisement in my android app. I need to

  • 0

I use AdMob service to display advertisement in my android app.

I need to display advertisement using WebView instead of opening external web browser for it.

Overriding onLeaveApplication() method in AdListener doesn’t help, external application is opened anyways after running method code.

Any solution?

  • 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-11T19:50:28+00:00Added an answer on June 11, 2026 at 7:50 pm

    you mean when you click on your ad it opens in a separate browser window? you would like it open inside the same webview?

    then you just need to add a shouldoverrideurlloading. something like this:

     public boolean shouldOverrideUrlLoading(WebView view, String url) {
    
    
    
                if( url.startsWith("http:") || url.startsWith("https:") ) {
                     return false;
    
    
                }
    
    
    
                 // Otherwise allow the OS to handle it
                 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
                 startActivity( intent ); 
    

    EDIT: sorry, this is only for the actual webview you are using in your app. since admob ads are displayed in their own little banner (which is essentially a webview too) it doesnt make sense to load that webpage into the banner. therefore a browser window has to pop up. may i ask why that is so important to you? I dont think it can be easily realized, meaning its not really possible.

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

Sidebar

Related Questions

Is there any examples of how to implement full-screen advertisement for android using AdMob?
I've developed an android phonegap application. The app make use of native admob ad
I released my Android app two days ago, using admob advertising. I used my
I'm building an Android app. I'm trying to use Admob, but I have some
How to integrate admob into my Android app? I have use this link: google
I'm writing free game for Android and im going to use AdMob. I have
I want to use AdMob in my app and I have 4 viewControllers (in
Does anybody have a suggestion to use Admob's iOS ads without using the iPhone
my android app already has the following permission: android.permission.INTERNET I want to use the
I'm using Android MOB, and I'd like to use different sizes of banners, especially

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.