user3918105
user3918105

Reputation: 11

Android: Adding admob ads to android apps

Is it compulsory to add Adview lifecycle methods to the activity? What happens if it is not added? I have integrated ads in my app through XML but I have not added the Adview lifecycle methods which are specified in the docs, but the ads are actually visible and working fine. Can anyone please explain the purpose of Adview lifecycle methods?

Upvotes: 0

Views: 113

Answers (1)

aditsinha
aditsinha

Reputation: 36

I wouldn't say that it is required, but it would be a good idea to do it. According to the javadoc for AdView, pause pauses associated extra processing associated and resume resumes it, so cycles won't be wasted on an add no one sees. According to this, destroy isn't needed any more, but is there for legacy reasons.

Upvotes: 1

Related Questions