title: How to show Admob interstitial on app start and exit
body: <p>I can make to show Admob Interstitial on App start, I also can make to show Admob Interstitial on App exit. But now, I want to show Admob Interstitial when App start AND exit. I have tried to combine 2 codes, one for the app start and one for the app exit, but result only show ads on app start, the ad does not appear on app exit.</p>
  
  <p>Here my code:</p>
  
  <pre><code>    InterstitialAd interstitial;
  private static final String AD_UNIT_ID = "ca-app-pub-2869508995487312/2690564381";
  private InterstitialAd interstitialAd;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.science_layout);
  
      interstitialAd = new InterstitialAd(this);
  
      interstitialAd.setAdUnitId(AD_UNIT_ID);
      AdRequest adRequest = new AdRequest.Builder().build();
  
      interstitialAd.loadAd(adRequest);
  
      interstitialAd.setAdListener(new AdListener() {
          @Override
          public void onAdLoaded() {
  
                  if (interstitialAd.isLoaded()) {
                      interstitialAd.show();
                  }
  
          }
  
          @Override
          public void onAdOpened() {
  
  
          }
  
          @Override
          public void onAdFailedToLoad(int errorCode) {
  
          }
      });
  }
  @Override
  protected void onPostResume() {
      // TODO Auto-generated method stub
      super.onPostResume();
      displayInterstitial();
  }
  
  @Override
  protected void onStop() {
      // TODO Auto-generated method stub
      super.onStop();
      displayInterstitial();
  }
  
  // Invoke displayInterstitial() when you are ready to display an interstitial.
      public void displayInterstitial() {
        if (interstitialAd.isLoaded()) {
          interstitialAd.show();
        }
      }
  </code></pre>
  
  <p>Anyone can help me fix code or provide new solutions? Thanks &amp; Best regards !</p>