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);
}
错误:
公共类StartUp出现错误,Eclipse报“类型StartUp必须实现继承的抽象方法AdListener.onPresentScreen(Ad)”。
请问这是什么问题,怎么解决?提前谢谢了!