I have about three Activities, and all these three activities have Banner ads at the bottom which are set by code in the OnCreate()
method of the Three Activities.
And due to some reason I need to Finish each Activity while moving from one activity to the other, and startActivity()
for coming back to the first Activity.
I wanted to know, how do i make just one Banner Ad for all these three Activity instead of calling them individually from different onCreate
, because my doubt is that on transition of Activities I am refreshing Ads(quiet ofently) which isn't a good practice for your clicks.
Should I declare it in a static Class so that it can be called from any activity and just one instance would be there(so no refreshing due to activity creation)
Suggestions are welcome.