multitasking

Can an iPhone application detect the execution of other applications when it is in the background?

With the support of multitasking in iOS 4.0+, is there any way that I can have my application run in the background and detect the launching and exiting of other applications? I know you can do this in Android, but I was wondering if this was now possible on the iPhone. ...

iOS 4 Alarm Clock App with Multitasking Support

I'm making an alarm clock app with multitasking support. However, I'm stuck with some limitations of the sdk. I need to play selected alarm sound whenever the alarm time comes with some properties set by the user. These properties: - Alarm sound can be a music from the user's iPod library, and also some sound files in application bun...

Multitasking: What if an app locks up while in the background?

We're developing an app for the iPad, and while we do all we can to ensure it won't lock up/freeze at any point, there will always be the theoretical chance that this can still happen. If an app becomes unresponsive, and is in the background, you can close it manually - but not all users know about this functionality. I know this is a...

How to stop view updates when app is in background (or sleeping)?

The Executing Code in the Background asks for "Avoid updating your windows and views". Because the UI updates are all over different views in various methods, what I can think of is setting a BOOL 'global' within each view controller (e.g. under the @implementation mapViewController), and use many if (BOOL) controls to stop updating IB...

Reload application data when the app comes into foreground?

Hello, i'm new to iPhone dev ... i'm building an app that loads data from a local sqlite3 db in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { When i tap iPhone button and put it in background and then i recall it i see (as normal) the app in the same way i leaved i...

Make a call from iPhone application without quitting.

Hi, Is it possible to make a call from application with out quitting application in iOS 4? ...

How process returns control back to task manager in multitask systems?

Just a simple question: in a single-task system OS copies smt to memory and then 'goes to' somewhere there and program returns control to task manager later. But in multitasking OS we just make a few steps inside the process and than return to task manager waiting for own turn. How do we 'go to task manager' without 'goto' and 'ret's? (...

iPhone Application Should Close, not go to Background

Hello I have an application which when the user taps central iphone's button, the application is sent to background. But I want it to be closed. I can hand event and close it, but may be there is an configuration setting to deny running in the background? thank you ...

iOS SDK 4.0 (Multitasking) issue

I have an iphone application developed on SDK-3.0. Now i want to port that application to SDK 4.0 because of multitasking, i want to keep my app alive in background. Problem is that i could not find any documentation who teach me where i start from to port my app on to SDK4.0 and brief me how i do multitasking in it. ...

iPhone multitasking and webservice calls

Within my iPhone application I periodically make calls to a webservice, providing the endpoint with a list of numeric IDs. The webservice then returns information relating to the IDs it receives. This is all well and good. However, I would like to be able to provide functionality whereby the user will receive a local/push notification w...

Play video's audio track when enter background?

I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background. So, is there any way to do that? There are some apps have this feature, a...

What is preemptive multitasking?

What is preemptive multitasking? After googling it I couldn't find an answer can someone help me? ...

applicationDidEnterBackground with integer iteration

Hello everyone. My question is quiet simple (I think). I have a class that implements a simple chronometer (using some integers and NSTimer). I would like to close my app (so enter in background mode) but I would like my chronometer still continue to count. How can I manage that ? Thanks a lot ! ...

Correct way to poll server in background

Assuming this is possible, I would like my iOS application, when backgrounded, to poll a server (i.e. essentially, retrieve the contents of a URL every 30 minutes and notify the user if it contains something "interesting"), essentially in a similar way to the way the built-in mail client assumedly works if you're not using push notificat...

Is Multitasking Enabled iPhone SDK

Hi, Please could you tell me how I could find out if multitasking is enabled on the iPhone. I am using Xcode. ...

Is it possible to have a timer running in background?

I need to have a timer running in the background that is called by the application did enter background method. I am having some trouble. When I enter background, it doesnt do anything. Here is my code. - (void)applicationDidEnterBackground:(UIApplication *)application { bcheckingTimer = [NSTimer scheduledTimerWithTimeInterval:5 ta...

How to stop your app appearing at the app running area, when you have explicitly stop running the app in backgroun

Basically i was looking for the way to stop the application form running at the background and the following question helped me. http://stackoverflow.com/questions/3222463/how-to-prevent-my-app-from-running-in-the-background-on-the-iphone But when i used this method, my app starts from beginning but when i double tap the home page, it ...