How do I kill a back ground running app in iphone?
I just want to know how to kill a back ground process/app in iphone. Just like in Auto Lock SBSettings where, the "process" toggle is able to list all the back ground process and allows user to kill any of them.
Thanks in advance.
Thanks 'refulgentis', 'Chuck' for your quick responses.
You're true and also I know that the Apple's public API doesn't allow me to do so. In a jail broken phone how could I do this? How "SBSettings" 'processes' toggle is doing the same?
My requirement is to kill and restart my "Phone (MobilePhone.app)" application. In this case how can I proceed furth开发者_JAVA技巧er?
Can you please give me some sample piece of code?
You can't, using the public API. Anything you write wouldn't be allowed on the App Store.
For jailbroken apps, just use ps -ax
and kill
.
Since you aren't allowed to have any background apps running on the iPhone, this turns out to be something of a non-issue.
精彩评论