Keep app running in the background

I am building my first app using adobe flash, and i have a problem. My app has a timer event to it, that calls a function with some code every second. When i click the "home" button on my iphone and the app goes to the background, the timer event is no longer executed every second. I want my app to keep going all the time, how can i do that?
- Otto

AIR on iOS provides support for executing short task (around 10 minutes) in the background. If you want to execute short task in the background, executeInBackground property needs to be set to true. App can execute in background for longer duration only if app is either playing audio or accessing location services. Please refer AIR iOS – Background Behavior blog for details.
-Neha

Similar Messages

  • How do I turn off apps running in the background on iOS7?

    I just updated my iPhone 5 to iOS7.  How do I turn off apps running in the background? Double tapping the home button and turning each one off doesn't work on the updated iOS.

    Double click the Home button and "slide" the open apps 'UP" with your finger, they will disappear.

  • How do i turn off apps running in the background with the new upgrade?

    how do i turn off apps running in the background with the new upgrade?

    They changed it a bit, but you can still close apps. Double click the Home button to pull up the currently running apps. Side scroll over to the app you want to close, then swipe up on the app *window* (not the icon at the bottom).
    = L.I.

  • Do apps running in the background drain battery, slow down performance, or use cellular data?

    I have heard that if you don't kill the apps running in the background, they will drain your battery, slow your other apps down, and could be using your data without any warning.  I've looked all over the place for a definitive answer to this, but different people and websites provide conflicting responses and I haven't found any useful information regarding this issue directly from Apple.  If anyone knows whether or not having apps constantly running in the background is harmful in anyway (and has a credible resource to back up their claim) let me know and provide a link to the answer if possible.

    What do you mean 'running in the background'? Something that is 'running' will definitely use battery, nothing runs on air or whatever. If an app uses data while it's 'running' then it will use data. Why do you need a link, it's common sense isn't it? Slow the phone down? That I can't say definitively, but it stands to reason that it will. 

  • My Overdrive for my library books does not allow me to access the book that i am currently reading since IOS7 updated.  also how do i now turn off the apps running in the background that are draining my battery?

    my Overdrive for my library books does not allow me to access the book that i am currently reading since IOS7 updated.  also how do i now turn off the apps running in the background that are draining my battery?

    hey i m working on my illustrator and i m having many problems with my swatches
    for example i use the green phosphorique i don't get this color i get another green
    and many colors too it's like illustrator chooses for you the only green color
    so please i kind of need help i can show you pictures of that i print screen viewed them.. so anybody who can help... pleaaaaaaaaaase contact me because i m having a project now..
    my e mail is [email protected] i would be thankful
    i even tried to download the illustrator on my friend's computer also i m having this problem ....

  • HT3576 how do I turn off the apps running in the background on my I phone 5 with the new ios 7

    How do I turn off the apps running in the background with my Iphone 5 with the ISO7 ?

    Double tap on the home button, slide the last used state(above the icon) up, tap Home button when finished.

  • HT201365 how do i turn off apps running in the background  with ios7 on my 4s phone?

    how do i turn off apps running in the background  with ios7 on my 4s phone

    Double Tap on HomeButton -> slide to that App you wish to Quit -> Swipe from Bottom to Upper Side Display

  • How to turn off apps running in the background on the iPad mini

    I am a long time iPhone and Mac user. We just purchesed a new iPad mini. I can't seem to get the apps running in the background to turn off. They won't wiggle, neither will they let me swipe up to remove them. Is there a preference in settings I need to turn on?
    Thanks!

    Close apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • Does iOS7 allow you to quit apps running in the background?

    I can't seem to close my apps running in the background. Before the upgrade, you could double click the home button and all apps running in the background would pull up; you could then hold one down and the app would allow you to cancel it. Now , the double tap brings up all background app but holding down on these apps doesn't allow them to be cancelled. Any suggestions would be helpful!

    Double tap home button, then swipe the app upward to close it.

  • Is there anyway to close apps running in the background with the new IOS 7 operating system?

    I would like to be able to close apps running in the background and haven't figured out if I can do it  or how to do it with the new operating system update. I would appreciate any help. Thanks and have a good day.

    Just look at this thread - https://discussions.apple.com/thread/5363937

  • My IPhone4 is secretly using alot of data even though I have double tapped Home button and closed all the apps running in the background.

    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    When im out of home, the phone drains battery REALLY FAST, I lose 6% battery in 5 minutes.
    The phone also heats up and feels very warm after a few minutes.
    When I turn the data plan off, it becomes normal again, like I lose 1% every 30minutes even while listening to mp3.
    I can conclude that its secretly using the 3G at an alarming rate which causes the battery to die so quickly
    I have uploaded 2 pictures showing what happens before and after I turn on my WIFI.
    Notice that the ping spikes like crazy on my home network once I turn on my WIFI on my IP4
    WIFI OFF:
    WIFI ON:
    I hope someone can assist me with this!
    Thanks!!

    chuuburg wrote:
    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    There is a common misconception that closing an app on the Quick Launch screen (it's real name) also kills the app's background process. This is not the case. First, all built in apps (mail, contacts, calendar, game center, notes, reminders, Genius, Photo Stream, etc) continue running their background processes even if killed in the Quick Launch screen. For apps from the App Store killing the foreground process also gives the app the option of killing its background process, but it doesn't have to. In addition, any app that has Notifications enabled can restart its background process if it receives a Notification.
    iOS 7 gives the user more control over background processes; you can selectively allow or deny any app to run in background. As you apparently have not upgraded this option is not available to you.
    As Chris has already told you, there's an app on your phone that is stuck in a loop. As you discovered killing foreground processes did not resolve the problem. One trick that sometimes resolves this is to let the battery run down until the phone shuts off and will not restart. Then charge to 100%.

  • I upgraded to the 7.0.3. Is there a way to get rid of apps running in the background like in previous versions?

    I upgraded to the 7.0.3. Is there a way to get rid of apps running in the background like in previous versions?

    Double tap the home button and swipe up on the app screen shot, to close out of the app in multitasking.

  • HT4211 In the new iPad update how do I shut down apps running in the background to preserve battery life?

    Now that I downloaded the new iPad update, how do I shut down apps running in the background to preserve battery life?

    in iOS 7, double click the Home Button (the round one on the front).
    You will see icons for all open apps with a 'screenshot' above each icon. Simply drag any 'screenshot' upwards using 1 finger to close the app.
    Most apps don't use much power when inactive but some do including Sat Nav apps

  • I am new to iPad. Is There a way to stop apps running in the background or is resets only option.

    I am new to iPad. Is There a way to stop apps running in the background or is resets only option. Don't know what Teresa has to do with it

    Close inactive apps in the background. No need to reset.
    Double-click the Home button and hold apps down for a second or two. Tap the minus sign to close app.

  • HT201365 On this new ios7 update how do I kill apps running in the background now? I used to be able to double tap the home button

    On this new ios7 update how do I kill apps running in the background now? I used to be able to double tap the home button

    Double tap the home button.  Slide the preview window upward.  You can do 2 at a time.
    It's rarely useful or necessary to do this. Very few apps actually "run in the background" (such as audio streaming and navigation apps).  The vast majority are frozen and consume no resources.  The iOS manages memory for you to optimize running apps.
    iOS: Understanding multitasking
    Message was edited by: modular747

Maybe you are looking for