# Android App Closed Out When Resume from Suspend

**URL:** <https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132>\
**Category:** Games\
**Created:** [January 24, 2025, 9:49pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132 "2025-01-24T21:49:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanC](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://forums.solar2d.com/u/DanC)\
**Post date:** [January 24, 2025, 9:49pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/1 "2025-01-24T21:49:56Z")

</div>

Hi everyone,

I’m testing the default helloworld template on android and encounter a strange behavior:  
After build and copy to the test device, the app load up just fine; however, if I press the home button or switch to another app, and then return to the solar2d app, it just freezes and quit on me. Have anyone encounter this issue before and do you know why it behaves like this?

---

<div class="post-metadata">

**Author:** ![bgmadclown](https://forums.solar2d.com/user_avatar/forums.solar2d.com/bgmadclown/32/490_2.png) [@bgmadclown](https://forums.solar2d.com/u/bgmadclown)\
**Post date:** [January 26, 2025, 8:58pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/2 "2025-01-26T20:58:02Z")

</div>

Hi!

We talked about this issue on Discord a while back but haven’t reached a resolution. We even shared videos on how it happens. You can check the messages from this [link](https://discord.com/channels/721785436195782677/769902356711604284/1304094802660556862).

Maybe it’s time to create an issue on Github about this. Can you give some information about the device you tested the app? Device model and Android version might help. I’d also encourage you to join the conversation.

---

<div class="post-metadata">

**Author:** ![DanC](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://forums.solar2d.com/u/DanC)\
**Post date:** [January 30, 2025, 1:24pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/3 "2025-01-30T13:24:02Z")

</div>

Hi @bgmadclown

Thanks for sharing the link!  
The model is Samsung Galaxy A15. Model Name: SM-A155M/DSN  
Android 14 with latest patch.  
The default helloworld template was built with the latest Solar2D version.

Just shared a video of the issue on discord. Thanks.

---

<div class="post-metadata">

**Author:** ![bgmadclown](https://forums.solar2d.com/user_avatar/forums.solar2d.com/bgmadclown/32/490_2.png) [@bgmadclown](https://forums.solar2d.com/u/bgmadclown)\
**Post date:** [February 1, 2025, 12:12am UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/4 "2025-02-01T00:12:38Z")

</div>

@chodongwon82 reported the exact same behavior.

> [@When pressing the Android "Recent Apps" button (III), the app unexpectedly crashes.](https://forums.solar2d.com/t/when-pressing-the-android-recent-apps-button-iii-the-app-unexpectedly-crashes/357146):
>
> @vlads I would like to report a bug. After receiving reports from users with Samsung Galaxy devices, I tested the issue using the “Hello World” sample project. Issue Details When pressing the Android “Recent Apps” button (III), the app unexpectedly crashes. (Please refer to the attached video.) However, if I exit the app using the “Home” button (□) and then resume it via the “Recent Apps” button (III), it works fine without any issues. Build Versions Solar2D 2023.3699 → Wor…

---

<div class="post-metadata">

**Author:** ![DanC](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://forums.solar2d.com/u/DanC)\
**Post date:** [February 3, 2025, 10:15am UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/5 "2025-02-03T10:15:03Z")

</div>

@bgmadclown, with @chodongwon82’s suggestion, as a temporary workaround, I rebuilt my app using the below steps and was able to get rid of the error:

1. Download Corona Solar2D 2023.3699
2. Replace this zip file (MacOS) with the latest version from 3714: /Applications/Corona-3699/Native/Corona/android/resource/android-template.zip

---

<div class="post-metadata">

**Author:** ![bgmadclown](https://forums.solar2d.com/user_avatar/forums.solar2d.com/bgmadclown/32/490_2.png) [@bgmadclown](https://forums.solar2d.com/u/bgmadclown)\
**Post date:** [February 3, 2025, 11:46pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/6 "2025-02-03T23:46:53Z")

</div>

That’s not ideal but a workaround at least. You can see my detailed report on the other topic. I’m also planning to include the workaround in the Github issue.

> [@When pressing the Android "Recent Apps" button (III), the app unexpectedly crashes.](https://forums.solar2d.com/t/when-pressing-the-android-recent-apps-button-iii-the-app-unexpectedly-crashes/357146/7):
>
> This is a follow-up update. I tried my game bilgi on an Android 14 Samsung device and used logcat to debug like @alanFlickGames suggested. My previous report on Discord was from Amazon QA testing it on Windows 11 Android emulation. I’ll share the steps to reproduce, code, error dump and other things I noticed. Here: Steps to reproduce: 1- Open the game. 2- Swipe up to see all apps working on the background. (Don’t send to background!) 3- Select the game again to bring it to full screen. 4…

---

<div class="post-metadata">

**Author:** ![system](https://forums.solar2d.com/uploads/default/original/1X/1bf6a947166df24e92aaa3358558f4b82d7f3d5a.png) [@system](https://forums.solar2d.com/u/system)\
**Post date:** [August 2, 2025, 11:47pm UTC](https://forums.solar2d.com/t/android-app-closed-out-when-resume-from-suspend/357132/7 "2025-08-02T23:47:51Z")

</div>

Closed on August 2, 2025, 11:47pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
