当我按下按钮更改为另一个活动时,我得到以下信息:“ W / ActivityThread:handleWindowVisibility:令牌android.os.BinderProxy@eb23963没有活动”
为什么?
答案 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();
}
}
希望有帮助!