Detecting sleep mode on Android

How do I detect when the player navigates away from my game on Android?

I want to save the game state at that point so the player can continue where they left off later or even after the phone has been restarted.

Thanks :slight_smile:

Maybe this?

That preview… what happened to my nice page titles :frowning:

5 Likes

@dapetcu21 Looks good - thanks. I’ll give it a try. Knew it was in there somewhere!

1 Like