multitasking

iphone 4.0 programming- disabling multitasking

I am working on an app for the iphone 4.0. The app was originally on the 2.2.1. I upgraded it to a universal app, but now it seems to be multitasking. When I press the menu button while running the app, instead of exiting it closes but when I relaunched the app it resumes where I left off. I am assuming this is multitasking? I want it to...

disable application from running in background

Is there any way to disable my application from running on the background? I don't want my app to run in the background, i need to completely close it when the user a done ...

iphone: playing audio playlist in the background?

Hi guys, I'm trying to play sequence of audio files in the background using AVAudioPlayer. When the app is not in the background it plays well, but when the app goes to the background it won't play the second song. Here is my code: -(void)playAudio:(NSString *)path{ NSURL *url = [NSURL fileURLWithPath:path]; NSError *error...

How to refresh UITableView after app comes becomes active again?

I would like my UITableView to reloadData once my app is active again, after a user exits the application. I know I need to implement (in my app delegate): - (void)applicationDidBecomeActive:(UIApplication *)application but im not sure how to reference the current UITableView? UPDATE: My UITableView is a separate controller. It is a...

C# Updater for Windows App

Hi i developed an updater application for my windows app. They are different projects under the same solution and they run as different processes. when i run the app it checks for updates at startup (as another process). when i click update button it tries to download files to the installation location. (i am using the .exe in debug fol...

Designing iPhone iOS4 application behavior: running in background vs. terminating application

We're developing iPhone GPS application for car drivers. As you probably know, iOS4 introduced multitasking, so our application can run in background - and it is. It's part of its functionality. The problem is with standard method of closing applications on iOS4. Here are two scenarios: 1) User wants to put application to background: ...

How to handle multitasking in OpenGL ES based apps on iOS 4?

I'm watching a WWDC video (session 105) that's talking about multitasking with iOS 4. Something interesting was just mentioned: "any GPU usage while your app is in either of the background states results in automatic termination of the app. This includes any calls to OpenGL." How does one handle this "requirement" if the ...

Does multitasking really matter for simple iPhone games?

I'm making a relatively simple OpenGL ES based iPhone game. While testing on the iPhone 4 I've noticed that multitasking doesn't "work". Specifically the app is automatically terminated when it's put into the background state (I think this is due to making OpenGL calls in the background and/or not releasing some resources). Since the ...

How can I tell my app is about to become inactive/go to background state?

I am assuming I need to implement: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resignActive:) name:UIApplicationWillResignActiveNotification object:nil]; ...

didReceiveMemoryWarning advice (too many multitasking applications in the background)?

Please help, I don't know what I have to do with didReceiveMemoryWarning exactly. My app launched well, but when there is too many running background apps, it receives memory warning, and exit. I just want to show an alert that asks user to exit some background apps. I have an appDelegate, in its window there is a view of my viewControl...

iPhone4 app does not load from "Recently Used App" list, just get blank black screen

Hi All, I am running into a very odd issue. I have an app that works perfectly, compiles with no errors, and when launch from springboard loads perfectly. It will load from springboard every time correctly, even if it is running in the background. However, sometime if I launch the app from the recently used app list, by hitting the h...

Multitasking in iOS4 : sending push data from background process

In OS4 the idea is sold to client is that the app is opened in background, and even if the user is on another app, the app can push data to server on regular basis (which would trigger push notifications btw) BUT on what i read on the internet is that IOS4 multitasking is a fake one : - it freezes the app, and doesn't leave it in backgro...

iPhone Task Completion

I started a few days ago to experiment development for the iPhone platform, and while reading about it's multi-tasking capabilities I found out the "task completion", which can be very useful. I googled a little, read the documentation available at developer.apple.com/iphone, but still haven't found something: is there a way to have th...

iphone multitasking crashes after longer time in the background

I have a application which I want to make multitasking ready, but the problem I have is that it does crash when it was in the background for a longer time. When I send it to the background for a few minutes, I can load it back and reuse it perfectly, but when it was in the background for a few hours it crashes as soon as I tap anywhere i...

iphone app cant be started on device after being killed - works fine on simulator

Hello, I want to put an update to my App and I'm encountering heavy issues. When sent to background and being brought back to foreground, the App works fine. However, after killing the process from multitasking (running in the background), the App tries to resume from the point where it left AND it freezes, which means, I cant start the...

iOS 4.0 Task Completion in Background

Hi, Using iOS 4.0 I am trying to do a download an image in the background when the app is suspended. What i am doing is when i get the applicationDidEnterBackground delegate call, i initiate one asynchronous NSURLConnection and set the app delegate as the delegate for the connection. But none of the NSURLConnection delegates are getting...

Can a iPhone voice Recorder App always run in Background recording the Sounds and Play them ?

Can a App record the Voice in the surroundings even when it runs in the background and play the recorded audio? Is it possible? ...

How do I send my application to background?

I want to run my application in background ... What things must I do to support this? ...

Discovering if a component is being displayed (of if it's in background), is it possible?

Hi, I need to run a method everytime the user switch the screen or return to the application (after a call, or pressing the "Home Button" and returning to the app, for example). Is there any way to recognize this, like an event or method that is always executed when this happens? Thank you guys in advance. ...

iPhone OS 4.0.x - transition from background to foreground

iPhone programming question: Is it possible to wakeup/resume iPhone application from background mode to foreground mode programmatically? I have a long-running background task, which is being launched in applicationDidEnterBackground method of UIApplicationDelegate. I need to make my application active/visible using some code inside ...