hello,
I read the java code of google banner ads example :
MyActivity.java
and see adView.destroy() before the activity is destroyed
but in firebaseAdmob adview only has Pause and Resume Method, does not have destroy method
Is it necessary to destroy adview in b4A project when the activity is destroyed?
if yes , and how to destroy it?
Thanks
I read the java code of google banner ads example :
MyActivity.java
and see adView.destroy() before the activity is destroyed
but in firebaseAdmob adview only has Pause and Resume Method, does not have destroy method
Is it necessary to destroy adview in b4A project when the activity is destroyed?
if yes , and how to destroy it?
Thanks
Java:
/** Called when leaving the activity */
@Override
public void onPause() {
if (adView != null) {
adView.pause();
}
super.onPause();
}
/** Called when returning to the activity */
@Override
public void onResume() {
super.onResume();
if (adView != null) {
adView.resume();
}
}
/** Called before the activity is destroyed */
@Override
public void onDestroy() {
if (adView != null) {
adView.destroy();
}
super.onDestroy();
}