Last active
January 16, 2016 09:00
-
-
Save Sinitca-Aleksandr/994ba79b3883d3dd15e1 to your computer and use it in GitHub Desktop.
Зачастую объявление нужно показать не между активностями, а в процессе работы одной активности, тогда добавляем после запуска загрузки объявления слушателя его загрузки с командой вызова объявления или установкой некого флага, для показа после определенных действий пользователя:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interstitial.setAdListener(new AdListener() { | |
| @Override | |
| public void onAdLoaded() { | |
| super.onAdLoaded(); | |
| displayInterstitial(); // Запустить показ рекламы | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment