When focus is lost, focusLost() is called. When focus is gained, focusGained() is called. pause() and resume() are no longer called when the focus is lost/gained.
When focus is lost, focusLost() is called. When focus is gained, focusGained() is called. pause() and resume() are no longer called when the focus is lost/gained.

ra4king/GameUtils