Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App killed in the Background

Hi,

I'm in developing process of an exercise App for my Versa 2. Is it possible to switch off the functionality that the app is closed after 2 minutes in the background? 

That would be helpful...

My second question is, is it possible that the user cannot exit the app while a workout is in progress?

This is still somewhat a problem in the functionality of the app...

 

Kind regards,

Oin

Best Answer
0 Votes
22 REPLIES 22

Okay, thank you! 

 

I got an error: AppMsgQueue full, 

But the memory is not overflowing.

Best Answer
0 Votes

Ah! That helps.

The short answer is that your app is tying up the CPU for too long (eg, a few seconds).

Your app needs to remain responsive to the operating system to handle system messages and events such as screen redraws. If the system tries to get it to do something and it doesn't happen within a few seconds, it assumes your app has crashed and closes it.

The functions it calls don't necessarily correspond to any code you've written.

You need to break up lengthy computations into smaller chunks, with a break in between so the system can breathe.

If you've got infinite recursion, that won't help either. 🙂

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Okay, I modified the source code a bit, everything works now. I seem to have somehow destroyed the height calculation, but I'm sure I'll find the error quickly 🙂Thank you for your efforts and the quick support!

 

Kind regards,

Oin

Best Answer