Launch another app from myapp without url scheme - jailbreak users are able to, so how?
i'm trying to write a small application, a "launcher" app, that comes up when i plug my phone to power supply. Now there should be a 4x4 grid with my fav app i want to load. therefore no problem.
But how to start an app from an app? I read dozens of times that is is not possible, to do it without url shemes like tel://
How are jailbreak applications able to to this? Like Activator, PluggedIn, iSheduler... 开发者_如何学PythonI have them running on my phone, and they are able to start any application, also my own, which don't have url scheme.
I tried lauchner from Erica Utilities, but it just crashed.
It is possible, but how?
Thanks for any advice Greetings Max
You can activate an app by importing these classes:
SBApplicationController
SBUIController
SBApplication
The SBApplicationController gets your app, the SBApplication, and then opens it using the SBUIController like so:
Class SBApplicationController=objc_getClass("SBApplicationController");
SBApplication *app=[[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:@"com.company.yourapp"];//change the bundle identifier for whichever app you want
[[objc_getClass("SBUIController") sharedInstance] activateApplicationFromSwitcher:app];
Finally i found a solution: open - a commandline tool by Conrad Kramer: http://thecydiastore.com/app/com.conradkramer.open/
精彩评论