0

I'm trying to integrate Admob interstitial ads to my android app and for some reason. Every time I open an ad it calls my activity onDestroy method witch results on my app being closed without any log-cat errors or messages.

Does anyone knows what may be causing my app to close once Admob interstitial is opened ?

Thanks in advance.

Umit Kaya
  • 5,771
  • 3
  • 38
  • 52
Alan Costa
  • 73
  • 3

1 Answers1

2

Android closes processes if needed when an application enters the background. You need to be able to handle the destruction of the activity. Look into saving instance states HERE

Community
  • 1
  • 1
Shane
  • 972
  • 2
  • 12
  • 27