Force app suspension possible?

Is it possible to force application suspend with a code statement?

(Apparently, it’s a convention that pressing the physical “Back” button on an Android phone while on the game’s main menu should take the user out of the game and back to the Android menu system.)

[import]uid: 73434 topic_id: 32123 reply_id: 332123[/import]

Found a solution: native.requestExit()
[import]uid: 73434 topic_id: 32123 reply_id: 131209[/import]

Found a solution: native.requestExit()
[import]uid: 73434 topic_id: 32123 reply_id: 131209[/import]

I can’t get my Android app to resume where it left off, like my iOS app does.

UPDATE: If I leave the app with the Android Home button, then I can resume from I left off. But if I leave it with Android Back, I can’t.

If you don’t handle the Android back button then what happens? Is a system.applicationSuspend event fired, or does it call a native.requestExit?

What is the correct way to tell your app to suspend (and not exit) on Android?
[import]uid: 36578 topic_id: 32123 reply_id: 133811[/import]

I’ve just seen these pages which say the Android Back button is supposed to exit the app, while the Home button is meant to suspend it:

http://stackoverflow.com/a/8213603
http://developer.coronalabs.com/forum/2012/02/16/n-button-nook#comment-115433

So the behaviour I was looking for is non-standard.

[import]uid: 36578 topic_id: 32123 reply_id: 133827[/import]

I can’t get my Android app to resume where it left off, like my iOS app does.

UPDATE: If I leave the app with the Android Home button, then I can resume from I left off. But if I leave it with Android Back, I can’t.

If you don’t handle the Android back button then what happens? Is a system.applicationSuspend event fired, or does it call a native.requestExit?

What is the correct way to tell your app to suspend (and not exit) on Android?
[import]uid: 36578 topic_id: 32123 reply_id: 133811[/import]

I’ve just seen these pages which say the Android Back button is supposed to exit the app, while the Home button is meant to suspend it:

http://stackoverflow.com/a/8213603
http://developer.coronalabs.com/forum/2012/02/16/n-button-nook#comment-115433

So the behaviour I was looking for is non-standard.

[import]uid: 36578 topic_id: 32123 reply_id: 133827[/import]