Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Community Center > Off Topic

Reply
 
LinkBack Thread Tools Display Modes
Old 06-05-2011, 08:20 PM   #1 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default Any way to terminate all apps in background?

I have an iPhone4. Sometimes some apps are crashing due to some reason, but when I terminate all apps in the bacground, the said app does not crash anymore.

So Im wondering are there any way (like an app or undocumented steps) to terminate all apps at a push of ONE button? For a non JB iPhone4.

And if there are no such app, is it even possible, programmatically? Id like an app to do that, so even if it is undocumented API, id like to make it and install as an AdHoc.

Tired of tapping the "-" buttons one by one when there are like, 50 of background apps..
rocotilos is offline   Reply With Quote
Old 06-06-2011, 03:29 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

terminate an app w\o jailbreak? I don't think you have enough permissions

however should be something like
Code:
kill( pidOfAppToClose, SIGINT );
you can retrieve pid (and filter it) using ps
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 491
13 members and 478 guests
andyzaharia, AppsBlogger, David-T, Drmatrix, flamingliquid, HemiMG, iAppDeveloper, Jaxen66, jon01, Paul Slocum, SLIC, tiendung2992, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,684
Threads: 94,131
Posts: 402,932
Top Poster: BrianSlick (7,990)
Welcome to our newest member, tiendung2992
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0