Android Question exit app

Almora

Well-Known Member
Licensed User
Longtime User
Hello to everyone

How can I show ads when I exit the app..

I tried it but it did not work.

B4X:
Private lAd As lnterstitialAd
........


Sub exitbutton_Click  'Exit from application

if lAd.show Then ExitApplication

EndSub
 

Almora

Well-Known Member
Licensed User
Longtime User
B4X:
Sub exitbutton_Click 'Exit from application
   If IAd.Ready Then IAd.Show
End Sub

Sub IAD_AdClosed
   ExitApplication
End Sub

(AdClosedevent) it works with.
But
when the internet was closed I could not get out of practice.

While it is connected to the internete. If there is no internet, there is no exit.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Bear in mind that if you are using AdMob, it is against Google's policies to show ads on app exit & you might have issues with your AdMob account if you do so...

- Colin.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…