“ W / ActivityThread:handleWindowVisibility:令牌android.os.BinderProxy@eb23963没有活动”是什么意思?

时间:2019-06-24 15:37:16

标签: android android-activity

当我按下按钮更改为另一个活动时,我得到以下信息:“ W / ActivityThread:handleWindowVisibility:令牌android.os.BinderProxy@eb23963没有活动”

即使是Android示例:https://github.com/google-developer-training/android-fundamentals-apps-v2/tree/master/TwoActivities/app/src/main/java/com/example/android/twoactivities

为什么?

1 个答案:

答案 0 :(得分:0)

请在“第二项活动”中检查要进行“按钮单击”的任何无限循环。

我遇到了与奖励视频广告相同的问题:

  

之前:

private void loadRewardedVideoAd() {
    if (!mRewardedVideoAd.isLoaded()) {
        //Demo ad
        mRewardedVideoAd.loadAd("ca-app-pub-3940256099942544/5224354917",
                new AdRequest.Builder().build());

        if (ad.getVisibility() == View.VISIBLE) {
            ad.setVisibility(View.INVISIBLE);
        }
        loadRewardedVideoAd();
    }
    else {
        //Toast.makeText(this, "Ad Already loaded", Toast.LENGTH_SHORT).show();

    }
}
  

之后

private void loadRewardedVideoAd() {
    if (!mRewardedVideoAd.isLoaded()) {
        //Demo ad
        mRewardedVideoAd.loadAd("ca-app-pub-3940256099942544/5224354917",
                new AdRequest.Builder().build());

        if (ad.getVisibility() == View.VISIBLE) {
            ad.setVisibility(View.INVISIBLE);
        }
        //loadRewardedVideoAd(); // I removed this line
    }
    else {
        //Toast.makeText(this, "Ad Already loaded", Toast.LENGTH_SHORT).show();

    }
}

希望有帮助!