I use Libgdx to develop a game for Android, and I noticed that when I click on the multitasking button while I am looking at a list of previous applications, the game is still running in the background (I see that the game continues to move in the background). Obviously, I would like to pause the game.
I use the Screen class, and the pause () method seems to be called only when the application changes efficiently. I was not able to detect the button click event as a workaround.
Thank you for your help.
source share