我在应用程序中集成了华为广告套件。我已经按照文件执行了。该应用程序未打开,因为它卡在启动屏幕中。如何关闭飞溅广告?
我们请求您重新检查SplashAdLoadListener
的onAdDismissed()
功能的实现情况。
您需要从函数onAdDismissed()
导航到下一个活动,如下所示:
SplashView.SplashAdLoadListener splashAdLoadListener = new SplashView.SplashAdLoadListener() {
@Override
public void onAdLoaded() {
// Called when an ad is loaded successfully.
...
}
@Override
public void onAdFailedToLoad(int errorCode) {
// Called when an ad fails to be loaded. The app home screen is then displayed.
jump();
}
@Override
public void onAdDismissed() {
// Called when the display of an ad is complete. The app home screen is then displayed.
jump();
}
};