Copy link to clipboard
Copied
I have air application mobile write by as3 in flash builder, now i want to reload or restart application. So, what i need to do something ?. Can you help me?. Thanks.
Copy link to clipboard
Copied
Do you mean you mean while inside the running app, you want to do a full restart of the same app itself?
Generally you could "simulate" an app reset but the app never really closes.
Im not sure exactly what you need to do.
I believe Myflashlabs makes ANEs that can launch apps and even do so on a specific time? (Alarm ANE)
So technically its probably possible to exit app and havd it start again a few seconds later but i dont know why one would do that
Copy link to clipboard
Copied
on iOS you can't do this 100%
Copy link to clipboard
Copied
so sad
Copy link to clipboard
Copied
Thanks for answer, because, when screen of mobile turn off, or press power button and wait a few minute, when i use app again, audio will not play, so i think, when turn on screen, app will restart. , thanks
Copy link to clipboard
Copied
The sound problem might be fixed by code. But if you want your app to close instead of pausing when a user switches away from it, you can add <key>UIApplicationExitsOnSuspend</key><true/> inside the <iPhone><InfoAdditions> element in your application descriptor.
Copy link to clipboard
Copied
Lars Laborious написал(а):
The sound problem might be fixed by code. But if you want your app to close instead of pausing when a user switches away from it, you can add <key>UIApplicationExitsOnSuspend</key><true/> inside the <iPhone><InfoAdditions> element in your application descriptor.
This is no the same as Restart as asked topic starter
now i want to reload or restart application
UIApplicationExitsOnSuspend just terminate app after pressing HOME. And you must start it again - manually. In a case of display dimming >>>> locking - you app will be not suspended? It just pauses.
Copy link to clipboard
Copied
There are deactivate and activate events that you would normally listen for. When the deactivate happens you would stop your sounds, and when activate happens you start the sounds again.
The situation is more complicated on Android, but that would be good enough on iOS.