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.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Android hardware buttons
Has anyone any information??
Currently Corona does not support Android buttons. It's on their roadmap though, so hopefully support will come in the near future!
+1 for android hardware buttons, especially back.
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.
Here is some code from Jon Beebe. It kills the process after a user exits an application.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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 |
Alternativly you can catch the suspend event and save your state to disk - then read it on next start.
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
App of the Week - Free Reviews?
Can't play wmv, avi, asf on Android
Additional levels by IAPP?
Football/Soccer manager game
Does Xperia Play dpad and buttons return string with onKeyEvent?
A platform that lifts the player
Android onKeyEvent
For anyone using HTTPS in an app...
Runs good on 3GS and lower but not iPhone 4! (Scaling issue)