[Solved] Game Resets To Splash Screen

When I install my game to my phone via android studio it works perfectly, except for one thing

If I press the android home button (to minimize the app) and then the power button, leaving the game in memory for a while

When I unlock the phone and access the game again, it has reset to the loading splash screen as though it was written out of memory

Is this a bug with Gdevelop coding?

Is it something essential I left out that should be in the code (that makes the game always stay in memory)?

How do I fix this?

Solved, it was a problem with Android studio.