When I return to my game after the device has gone into sleep mode (from either auto-sleep due to inactivity, or from pressing the power button), Android’s navigation bar appears in the game, and does not go away. Interestingly, this does not happen if I exit the game and re-open it.
I want to use immersive mode and keep the game always fullscreen, but it seems that fullscreen is not maintained after sleep. Is there any way around this? Thanks in advance.
Thanks! The code I have is a bit different, but I noticed that it wasn’t hiding the UI on resume, so I just added hideSystemUi(); to doResume(), and that seems to have done the trick