MainActivity can launch Activities A,B and C and in those last three I want to show NativeAds. I find it an overkill to do this in every activity.
Appodeal.setNativeCallbacks(new NativeCallbacks() {
@Override
public void onNativeLoaded(List<NativeAd> list) { /* show ads*/}
@Override
public void onNativeFailedToLoad() { }
@Override
public void onNativeShown(NativeAd nativeAd) { }
@Override
public void onNativeClicked(NativeAd nativeAd) { }
});
if(numberOfAds==1) {
Appodeal.cache(this, Appodeal.NATIVE);
}
else{
Appodeal.cache(this, Appodeal.NATIVE, numberOfAds);
}
Plus it takes quite some time for NativeAds to load and I would prefer to show the ads immediately on create.
Is there a way to request from AppoDeal allready cached NativeAds inside Activities A,B andC? Or else pass the List object from MainActivity to the other three?