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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:57:51+00:00 2026-06-15T00:57:51+00:00

import com.google.ads.*; import com.google.ads.AdListener; import com.google.ads.AdRequest; import com.google.ads.InterstitialAd; public class StartUp extends Activity implements

  • 0
import com.google.ads.*;
import com.google.ads.AdListener;
import com.google.ads.AdRequest;
import com.google.ads.InterstitialAd;

public class StartUp extends Activity implements AdListener {

    private InterstitialAd interstitialAd;   
    AdView adView;

       public static final  String MY_PUBLISHER_ID = "abc"; 

       @Override
       public void onCreate(Bundle savedInstanceState) 
       {
          super.onCreate(savedInstanceState); // call the superclass's method
          setContentView(R.layout.main_first_page); // inflate the GUI

          interstitialAd = new InterstitialAd(this, MY_PUBLISHER_ID); // Create an ad.  
          interstitialAd.setAdListener(this); // Set the AdListener.
          AdRequest adRequest = new AdRequest();
          adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
          interstitialAd.loadAd(adRequest);       
          if (interstitialAd.isReady()) {interstitialAd.show();}

          Button ButtonIQ= (Button) findViewById(R.id.buttonA);    

       }

Error:

There is an error at public class StartUp, reported by Eclipse that “The type StartUp must implement the inherited abstract method AdListener.onPresentScreen(Ad)”.

May I ask what is this and how could this be solved? Many 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-15T00:57:52+00:00Added an answer on June 15, 2026 at 12:57 am

    An abstract class cannot be instantiated. You must create a “concrete” or real class which implements the abstract class, which you have done.

    The abstract class may also define abstract methods which the concrete class must supply. In this case, you have not supplied a method for onPresentScreen(), hence the error you are seeing.

    http://docs.oracle.com/javase/tutorial/java/IandI/abstract.html

    See the AdListener documentation for how to implement this method which is called when an ad is presented at full screen.

     @Override
        public void onPresentScreen() {
             // called when a full screen ad is presented
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Activity where I want to use: import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class BankoTinklasMap extends
import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; public class Map2Activity extends MapActivity { /** Called
Code: import com.independentsoft.exchange.Service; import android.app.Activity; import android.os.Bundle; public class ContactsToExchangeActivity extends Activity { @Override
In my GWT app I have the following model class: import com.google.gwt.user.client.rpc.IsSerializable; public class
I met a problem when trying @Singleton of Guice: import com.google.inject.Singleton; @Singleton public class
The following code doesn't compile import com.google.common.collect.LinkedHashMultimap; public class Test { public static void
In the following minimalistic example: import com.google.gson.Gson; import com.google.gson.GsonBuilder; public class GsonStuff { public
Consider the following class definitions: import com.codahale.logula.Logging abstract class A extends Logging { log.info(from
The following code returns null for me. package test; import com.google.gson.Gson; class test {
import java.util.List; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.view.ViewGroup; import android.widget.*; import com.google.android.maps.MapView;

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.