Efficient saving of Android AdMob interstitials -


scenario: activity initializes , loads admob interstitial. activity b starts on top of a, can cause destroyed reclaim resources. when user comes activity a, needs recreated , interstitial downloaded again.

what best way preserve downloaded interstitial?

the method onsaveinstancestate seems unsuitable this.

the best solution have single activity , use 2 fragments within activity. way interstitial never destroyed.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -