Currently if someone switches to another app while mine is running, when I come back to my app it restarts. I have seen some Corona apps pause the game so that when you come back to it, it starts from the pause screen instead of completely restarting. How is this done?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Multitasking - how do you get the app to not restart?
In build.setting add UIApplicationExitsOnSuspend = false, like this:
1 2 3 4 5 6 7 8 9 10 | iphone = { plist = { MinimumOSVersion="4.0.0", UIStatusBarHidden = true, UIPrerenderedIcon = true, UIApplicationExitsOnSuspend = false } } |
in your build.settings, have
1 2 3 4 5 6 7 8 9 10 11 | settings = { iphone = { plist = { UIApplicationExitsOnSuspend = false }, }, } |
Great, thanks guys.
views:1314 update:2011/9/28 21:38:26
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
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
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
相关文章
Send image to server with php
Corona SDK *IS* Compatible with new Amazon Kindle Fire
Is a website required?
eXp Jet 1.2
Ploons for iOS - Now Waiting for Review!
Culling
Function Request: SetParticleType
Corona SDK Simple Display Challenge
Camera not functioning as it should. (drag and drop code example)
yet another dumb question
Corona SDK *IS* Compatible with new Amazon Kindle Fire
Is a website required?
eXp Jet 1.2
Ploons for iOS - Now Waiting for Review!
Culling
Function Request: SetParticleType
Corona SDK Simple Display Challenge
Camera not functioning as it should. (drag and drop code example)
yet another dumb question
corona forums © 2003-2011