从 myapp 启动另一个没有 url 方案的应用程序 - 越狱用户可以,那么如何呢?

发布于 2024-11-16 17:43:26 字数 352 浏览 7 评论 0原文

我正在尝试编写一个小应用程序,一个“启动器”应用程序,当我将手机插入电源时会出现该应用程序。现在应该有一个 4x4 网格,其中包含我想要加载的我最喜欢的应用程序。因此没问题。

但如何从应用程序启动应用程序呢?我读了几十遍,这是不可能的,如果没有 tel:// 这样的 url 方案,

越狱应用程序如何能够做到这一点?像 Activator、PluggedIn、iSheduler... 我让它们在我的手机上运行,​​它们能够启动任何应用程序,包括我自己的,没有 url 方案。

我尝试了 Erica Utilities 的 lauchner,但它崩溃了。

这是可能的,但是如何呢?

感谢您的任何建议 问候最大

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...
I 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

金兰素衣 2024-11-23 17:43:26

您可以通过导入这些类来激活应用程序:

SBApplicationController  
SBUIController  
SBApplication

SBApplicationController 获取您的应用程序 SBApplication,然后使用 SBUIController 打开它,如下所示:

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];

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];
白馒头 2024-11-23 17:43:26

最后我找到了一个解决方案:open - Conrad Kramer 的命令行工具:
http://thecydiastore.com/app/com.conradkramer.open/

Finally i found a solution: open - a commandline tool by Conrad Kramer:
http://thecydiastore.com/app/com.conradkramer.open/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文