Hi all,
Is it possible to programmatically close all running applications of IPhone with my application ?
any suggestion will be great help !!!
Thanks... Best Regards
Hi all,
Is it possible to programmatically close all running applications of IPhone with my application ?
any suggestion will be great help !!!
Thanks... Best Regards
No. All apps run in a sandbox so that you can't communicate between them. And even if you technically could it would be considered bad practice.
Why do you need to close other apps? I can't think of any valid use case where that would be necessary.
It's not possible and there's also no need to.
There are very conservative limits on how much processing a background app can use and if the result of low memory warnings is that there still isn't enough memory, the OS will automatically start killing things. Don't try to be clever - it's just as willing to kill you and indeed will kill you first if nothing else is running.
Thanks Stephen for the answer.
But Is it possible to close all applications by clicking on home button. I mean programmatically, I can capture HOME button CLICK event,and then close all applications ?
An app doesn't have access to the home button on a stock device. The only other access to any other apps in the background is if they have registered a URL handler.