First off, I don’t want to sound like this is a complaint, MonoGame is absolutely fantastic. I just don’t know how to fix this.
Android builds can never resume the game gracefully. I’ve been working with XNA/MonoGame for a little while now, and I’ve always assumed I was doing something wrong, but it appears to be in the binaries.
In short, both the home button and the back button can never resume the game, even though Game.Tick() is being called.
when the game is resumed, and MonoGameAndroidGameView.CreateFrameBuffer is created, as soon as GraphicsDeviceManager.ResetClientBounds is invoked, the following error appears:
I have downloaded the platformer sample to test this, and the bug is present when using the latest build (#1368) however it is not present in the NuGet binaries.
I have also tested this in the default blank game projects, and it cannot resume the simple text “hello from monogame”
I have looked into it for the last couple days, and there are a couple topics but mostly very outdated and I haven’t found a fix.
I have tried overriding the complete android lifecyle (OnPause, OnResume, OnDestroy) and haven’t found a way to bring the game back using the latest binaries.
Has anyone found a way to do this? All I want is for the player to be able to hit the home button and be able to come back to the game again.