在我的应用程序中,我放置了插页式广告全页。它在大多数手机上都能正常工作,但是当我检查我的朋友Galaxy Note 1时,插页式广告正在重复播放。我不知道为什么它只发生在一个手机..我检查了三个以上的其他手机包括三星Galaxy S2,S3等......但在这些手机没有问题,我也在模拟器中测试过。 。一旦我关闭广告就没有问题了,它不会重复。问题是这个特定的手机,如果有人知道的原因,请帮助...这是内存或somethiing的问题..Android插页式广告重复
我给下面的代码。
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.tabpmnth_xm);
// Create the interstitial.
interstitial = new InterstitialAd(this);
interstitial.setAdUnitId("ca-app-pub-xxxxxxxxxxxx8x/x2xxxxxxxx");
// Create ad request.
AdRequest aadRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("xxxxxxxxxxxxxxxxxxxx")
.build();
// Begin loading your interstitial.
interstitial.loadAd(aadRequest);
interstitial.setAdListener(new AdListener(){
public void onAdLoaded(){
displayInterstitial();
}
});
public void displayInterstitial() {
if (interstitial.isLoaded()) {
interstitial.show();
}
}
上面的链接
谢谢库纳尔....你的帮助..让我检查 – Jocheved 2014-10-04 09:16:41