I’ve got the following code in my application:
[lua]
Runtime:addEventListener(“system”,function (event)
if event.type==“applicationSuspend” then
transition.pause()
end
if event.type=="applicationResume"then
transition.resume()
end
end)
[/lua]
I use it to stop and resume a scrolling background effect. I’ve found that if I don’t do that, the animation jumps when the application resumes. However I’ve noticed that the transition only resumes every second time the code is called. So if I open the application after suspending it nothing happens. If I do it again it works. Any ideas on how to work around this?