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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -