Page 1 of 1

App crash on repetitive launches.[Solved]

Posted: Wed May 18, 2016 1:45 am
by Jellobus
hi all,

I have a test app for Android platform. its working great as I expected until the app crahes after repetitive launch, close, launch x 14 times.

1. launch the app on the android phone (the app starts with sounds, images, text)
2. close the app
3. repeat 1,2 x 14 times continuously.
4. app crahes on the launch. android pop up saying "unfortunately the app shutdown~"
( the app crashes on 14th of continuos launching always. )

interestingly, I noticed that app isn't crashed if i refresh the memory of the phone in the middle of this repetitive test.

Is there anyone have idea to prevent this app crash?

thank you for your time!

Louis

Re: App crash on repetitive launches.

Posted: Wed May 18, 2016 5:44 pm
by jacque
How are you closing the app? If you are just using the back key, Android won't always clear it from memory. Android keeps apps in RAM until it needs the memory, and if the app is recreating large resources every time it opens, it may run out of memory and crash.

You can try adding a "quit" command to a backKey handler, which will shut down the app completely.

Re: App crash on repetitive launches.

Posted: Sun May 22, 2016 7:17 am
by Jellobus
Solved! Thanks for your advice.

Cheers,

Louis