Android hardware buttons

Does Corona support Android devices hardware buttons (back,menu,search,home)?? I saw discussion that Corona might support it now. So does it support or not? I havent seen anywhere sample code or something how to use these buttons. I just need to code back button to change scene. I am using director. [import]uid: 18445 topic_id: 9622 reply_id: 309622[/import]

Has anyone any information?? [import]uid: 18445 topic_id: 9622 reply_id: 35221[/import]

Currently Corona does not support Android buttons. It’s on their roadmap though, so hopefully support will come in the near future! [import]uid: 49205 topic_id: 9622 reply_id: 35267[/import]

+1 for android hardware buttons, especially back. [import]uid: 4596 topic_id: 9622 reply_id: 36823[/import]

It boggles the mind how a standard feature on every android phone was not implemented from the start in this SDK. Hopefully they get this available to subscribers and non-subscribers as soon as possible. I’m not paying for a subscription that doesn’t support such a basic feature.

In the short-term, is there any other workaround that allows us to detect that our application has dropped into background or otherwise shut it down, so that it doesn’t continue to show up in the “running” list of applications?

Cheers – Tim. [import]uid: 39803 topic_id: 9622 reply_id: 37282[/import]

Here is some code from Jon Beebe. It kills the process after a user exits an application.

[lua]local onSystem = function( event )
if event.type == “applicationSuspend” then

if gameIsActive then
gameIsActive = false
physics.pause()
end

elseif event.type == “applicationExit” then
if system.getInfo( “environment” ) == “device” then

os.exit()
end
end
end [import]uid: 39088 topic_id: 9622 reply_id: 37454[/import]

Alternativly you can catch the suspend event and save your state to disk - then read it on next start. [import]uid: 8872 topic_id: 9622 reply_id: 37649[/import]