Titanium Admob不断检查新广告

时间:2015-02-06 23:18:11

标签: android titanium admob

我正在使用钛合金模板,found here

我的应用有几页,所以我在其中几个上加载广告。

我的问题是,经过几次访问后,每个广告似乎都没有收集或杀死垃圾,因此在我的输出中我可以看到很多信息声明,表明应用正在检查广告。这些每60秒发生一次,更接近每5秒钟。

我认为这会在应用程序运行时引起一些降级/电池使用。

有没有人知道我的意思是如何杀死"刷新一个adob广告?如果它特定于钛,很棒。如果它特定于android,那么,让我知道方法调用和概念,我将看看我是否可以将其转换为js钛代码!

[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   APSAnalyticsService: Analytics Service Started
[INFO] :   APSAnalyticsService: Stopping Analytics Service
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.
[INFO] :   Ads: Ad is not visible. Not refreshing ad.
[INFO] :   Ads: Scheduling ad refresh 60000 milliseconds from now.

1 个答案:

答案 0 :(得分:0)

活动生命周期的onPause()方法,考虑暂停AdView mGoogleAdView;

           if (mGoogleAdView != null) {
                mGoogleAdView.pause();
            }

在生命周期的onDestroy方法中考虑

 mGoogleAdView.destroy();

P.S:我没有使用过Titanium。