Take the 2-minute tour ×

I'm creating a jailbreak tweak that includes calling from the lockscreen. I am currently using [[%c(SKTelephonyController) sharedInstance] dialNumber:number] to call a number.

Everything is working fine and the call goes through until you try to make a call when there is an open application. For example, if you leave an application open and lock the phone without closing the application, SpringBoard will crash when you try making the call. If there is no open application, the call works fine and there is no crash.

Is there a way to suspend the application programmatically?

I've already looked into [[%c(UIApplication) sharedApplication] _killThermallyActiveApplication];, but the selector is unrecognized, although it is found in the private headers. I've also tried [application disableContextHostingForRequester:@"LaunchSuspend"], which also isn't working.

I'm trying to deactivate the application before making the phone call, but after 2 days of searching through headers, I am unable to do so.

Any help is appreciated.

share|improve this question
Don't really have experience with JB tweaks, but I think you need SBSuspendFrontmostApp –  Mar0ux May 31 '13 at 5:14
add comment

1 Answer

up vote 2 down vote accepted

Finally figured it out! I'll put the code below for those who need it.

[[%c(UIApplication) sharedApplication] quitTopApplication:nil];

share|improve this answer
add comment

Your Answer


