调度的广告刷新60000毫秒从现在开始

调度的广告刷新60000毫秒从现在开始

本文介绍了广告是不可见的。不清爽加。调度的广告刷新60000毫秒从现在开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些CPU的使用率,当我的应用程序中背景,我receving在logcat的唯一消息是从未来AD浏览与典型的:

I am having some CPU usage when my app is backgrounded and the only message I am receving at Logcat is coming from Adview with the typical:

广告是不可见的。没有令人耳目一新的补充。计划广告刷新60000毫秒为单位从现在开始。

"Ad is not visible. Not refreshing add. Scheduling ad refresh 60000 miliseconds from now."

这其实正好是过,所以我增加了code暂停时杀AD浏览报。基本上我的code已经破坏了AD浏览报如下:

That actually happened to be before, so I added the code to kill the AdView when pausing. Basically my code is already destroying the Adview as follows:

    public void onPause() {

    if ( adView != null ) {
        adView.pause();
    adView.destroy();
    adView = null;

    Log.i(TAG + ": OnPause", "Pausing the Adview");
}

    super.onPause();

 }

阅读关于这个问题的所有相关主题的建议做什么,我在的onPause所做的,但它不工作。我知道code是通过这个code作为日志是我介绍的信息写在LogCat中。

Reading all related topics about this issue recommend to do what I've done in onPause, however it is not working. I know the code is passing through this code as the Log is writting at LogCat the message I've introduced.

推荐答案

我想你只需要 adView.pause(); 的onPause( )方法:

@Override
protected void onPause() {
    adView.pause();
    super.onPause();
}

adView.resume(); onResume()方法:

@Override
protected void onResume() {
    super.onResume();
    adView.resume();
}

更新:我认为这是报告给谷歌的问题: https://groups.google.com/forum /#!话题/谷歌AdMob的,广告-SDK / JZ-ZQh86lm0

Update:I think is an issue reported to google:https://groups.google.com/forum/#!topic/google-admob-ads-sdk/jz-ZQh86lm0

这篇关于广告是不可见的。不清爽加。调度的广告刷新60000毫秒从现在开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:19