I want my android game using LibGDX to continue keeping track of events in the game, even while it's not the active window.
For example, I have a stat that reduces over time even, if the game is not the active activity. When the stat gets to a certain percentage, I want to push a notification to the android platform.
I found some information to push android notifications. However, I could not find one on how to make a stat persist in the game when a different app or activity is on the main screen.