Close other multitasking apps with our application with code - iPhone - iphone

I want to close other application running background with my app
how can i do it?

not possible
...unless your are programming in a jailbroken iPhone

You can request the user (who is in control of their device) to kill background apps manually and/or reboot their device. Which is not a good user experience, even though I've seen this request on some game app support forums/FAQs.

Related

Detect how many apps are in running mode on device

I am developing an app where I have to detect whether there any app which is already running on device. I want the list of all running apps. I made R&D on this topic but I found nothing. Is there any way to do this?
I think in a non-jailbreak app you can not do this.
However for a jailbroken app you can do : Return a list of running background apps/processes in iOS
Also: Detect which app is currently running on iOS using sysctl
EDIT:
As this app in iTunes does the same as you need, so you can go with above.

Restarting an iPhone programmatically

I have an iPhone 3GS, which I am using for testing etc. Unfortunately its Power button (the one on top right) stopped working, thanks to my son's attempts at baseball pitching practice. Now, if I have to reboot the phone, all I can do is let the battery drain out and then reconnect power. Is it possible to do something programmatically (I will not, of course, submit this as an iPhone App!) without jailbreaking, so I can restart the iPhone when needed? I have an Apple membership so I can write and run these apps on the phone. Any suggestions are appreciated.
I am running iOS 5.1.1 on it currently.

iOS5 - Downloading 100MB in background when app is not running

iOS5 has multi tasking enabled feature.
So, When the app is in background mode, can I download the data in background?
Will apple permit to write such code?
If yes, any examples will be of great help.
You can. You could use one of methods described in iPhone - Backgrounding to poll for events to get 'constat background' for you
But Apple is very unlikely to approve such abuse for AppStore

How to develop the iPhone Widget so that they can be run even if the app is in background state

I need to develop widgets for the iphone device. But don't know how to do it. Are they possible to develop & acceptable as per the apple norms?
Basically I need develop an app which can display its view also when the phone is locked or app is in Background mode.
I mean the app view will always on the top of the screen immaterial that the app is in active state or in background mode
Is this possible?
I am not sure about it so please guide me with the better option to achieve the same
Thanks & Regards,
Zahur
It's only possible for jailbroken devices. Apple has no public APIs that allow you to display things other than push/local alerts on the lock screen or home screen.
This is not possible using the iOS SDK. It may be possible on a jailbroken device, but there is a 0% chance that it would make it into the App Store.
Is this possible?
Nope

iPhone app alert without push notification?

How can I alert a user that they need to do something without using a push notification? For instance, if I have an alarm clock app, how can I get it to ring when it is not already running without using a push notification?
You can't. As of writing, iPhone OS does not support background processes. (There wouldn't be any need for push notifications if iPhone OS supported background processes!) You can alert the user while your application is running using UIAlertView, but once your app is closed, you can't do anything.
As #Henrik P. Hessel mentions, it is rumoured that background processes will finally be supported in iPhone OS 4.0. Rumours also suggest that iPhone OS 4.0 will be previewed at the January 27 Apple Special Event. We'll soon see whether they're true...
That's not possible yet. There're rumors though that multitasking and background processes will be allowed in iPhone OS 4.0. But that's more than speculative.
You can't do it in the official iPhone OS 3.1.2 or lower. As mentioned by others, there are rumors that iPhone OS 4.0 will support background processes, but nothing about that has been confirmed by Apple.
You may, however, develop an application that can alert the user without push notifications if you forgo the officially sanctioned SDK + App Store route, and build applications for jailbreak (Cydia or Rock). There are a growing number of for-pay apps in jailbreak land these days. Of course, this will limit your app's exposure, and will be negatively looked at by Apple, but if you have a niche market (and don't mind requiring jailbreak users) or this is only for yourself/friends, this might be a good direction to go in.