When testing my 2D game on the Nexus 6 emulator, the app launches and works fine the first time. But when I close out of the app and try to reopen it, I get a "Unfortunately, Launcher has stopped" and the emulator crashes. This only happens on the Nexus 6 emulator, on other older AVDs the app reopens fine. Nothing shows up in Logcat when this happens.
I was wondering if anyone knew why this happens and only on the Nexus 6 emulator. I have suspected the following culprits but I am not sure:
Out of memory - I do not release any of the bitmap resources used in the game, should I be doing this and if so, should it be from the surfaceDestroyed()
method?
A threading issue - perhaps the thread is not being properly shut down or restarted?
Any help would be appreciated!
Pressing on the "Launcher 3" app will open the "App info screen" which will show some details pertaining to that app. On this App info screen, you will find buttons like "Force Stop", "Uninstall", "Clear Data" and "Clear Cache" etc.
Well I figured it out, turns out if I increase the RAM and heap space in the AVD advanced settings slightly I do not have this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With