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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:53:15+00:00 2026-06-06T06:53:15+00:00

I was adding some ads to my app with the admod sdk, and I

  • 0

I was adding some ads to my app with the admod sdk, and I wondered if I can hide the banner after clicking on it, so the user could enjoy the app without ads. I searched it, but I didnt found any proper answer.

I thought about using OnClickListener and OnTouchListener, but neither of those worked.

I added something like this:

adView.setOnTouchListener(new OnTouchListener(){

    public boolean onTouch(View p1, MotionEvent p2)
    {
        // TODO: Implement this method
        return false;
    }

    public boolean onTouch(View v)
    {
        mainLayout.removeView(adView);
        return true;
    }
});
  • 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-06T06:53:16+00:00Added an answer on June 6, 2026 at 6:53 am

    Added this to my code… worked great! only thing to do is implement AdListener, and setAdListener, nothing more 😀

    public class MainActivity extends Activity implements AdListener
    {
    
    public void onReceiveAd(Ad p1)
    {
        // TODO: Implement this method
    }
    
    public void onFailedToReceiveAd(Ad p1, AdRequest.ErrorCode p2)
    {
        // TODO: Implement this method
    }
    
    public void onPresentScreen(Ad p1)
    {
        // TODO: Implement this method
    }
    
    public void onDismissScreen(Ad p1)
    {
        mainLayout.removeView(adView);
    }
    
    public void onLeaveApplication(Ad p1)
    {
        // TODO: Implement this method
    }
    
    
    @Override
    public void onCreate(Bundle savedInstanceState) {   
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    //load ad stuff,etc,etc
    adView.setAdListener(this);
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after adding adMob ads to my application, I have noticed some strange memory behaviour.
I'm adding some logic to my web app to lookup geo-coordinates for a user,
Looking at adding some data graphing to a new iPhone app in development (ala
I am working on The ausdcf.org to try adding several banner ads in swf
I am adding some notification in my app and storing the data given in
I'm adding some custom logging functionality to a bash script, and can't figure out
i am getting adding some of parameter in query string.value of these param can
I'm adding some functionality to my site so that users can upload their own
can i adding some value attribute on all src tags in current html page
I am adding some user controls dynamically to a PlaceHolder server control. My user

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.