Suspend and Resume

Is anyone handling suspend and resume on android?

There isnt any way to distinguish between the back key or a sleep or a lock/phone or a home press.

The only option I see is to add an exit game button on the main screen. Thats not a great UI because you then need to exit all the way back out of the game to quit it.

[import]uid: 8872 topic_id: 7160 reply_id: 307160[/import]

I always get the black screen in my app (and have to close it) if I have my app running and then I keep home button pressed down to invoke a task manager and re-select my app from the task manager’s list. If I go to phone’s homescreen first and then invoke task manager and select my app, then there are no problems. [import]uid: 15957 topic_id: 7160 reply_id: 53329[/import]

I am having problems with resume. My Current app has about 300 text objects in 4 groups. I have had to separate the setup of these screens from the rest of the interface on Android by using timer.performWithDelay() to do delayed setup.

If I try to set them up all at once, I get a JNI error that a table with 512 entries has overflowed. The app never starts.

The app now runs as expected on initial execution. The problem is when the app resumes, it has almost the same problem as before, instead of a black screen you get the last screen shown, then, one buzz, then 2 buzz a bit later and forced exit.

It appears that corona is trying to init all the objects again which blows up the JNI if it is all done at once.

Has anyone seen this before? got a solution?

How bout you corona folks? why is the JNI so fragile?

Can the temp interface table size be increased?

Please help, this is a major problem that will delay release.

[import]uid: 26049 topic_id: 7160 reply_id: 54247[/import]