I'm new to android and I've watched tutorials online on creating alert dialogs with countdowns but i can't seem to use the .setOnShowListener on my alert box.

![I made this on a Fragment](https://i.stack.imgur.com/qh8dP.png)

![Output Reference](https://i.stack.imgur.com/IRFJF.png)

I tried to transfer it to the homepage activity but the button is on the 1st fragment