tags:

views:

45

answers:

2

Is is possible to send the application to background programmatically on iphone?

A: 

NO, It does not allow applications to run in the background programmatically .

org.life.java
Some clarification may be needed on this answer. No, there isn't any way to send an app to the background programatically, but yes, an app can run in the background (providing that it complies with the background task requirements and the app is sent to the background by the user).
Jasarien
Edited Jasarien..
org.life.java
A: 

Under iOS 4.0, your app will be put in the background if another app enters the foreground, and there are enough resources to keep your app in the background. You could send a URL to Safari, or another app that has registered for a handler, and hope that there's enough memory (etc.) that the OS puts your app in the background after it starts Safari (or whatever app handled the URL). If you are lucky (which typically happens fairly often), you will have sent your app programmatically to the background.

Of course, whether your app runs in the background, or is just suspended, depends on other things (which you have to register with iOS 4.x for).

hotpaw2