如何将我的 Android 应用程序与 SL4A 集成?

发布于 01-04 11:38 字数 145 浏览 4 评论 0原文

我想将我的应用程序与 SL4A 集成。为了让用户执行某些操作来响应我的应用程序中的事件,我想将带有数据的意图发送到 SL4A,或者仅使用文件名在文件中执行 sl4a 脚本。

这怎么能做到呢?

编辑:我不想在我的应用程序中使用 sl4a 源代码。

I want to integrate my app with SL4A. In order to let the user to do something in reponse to events in my app i'd like to send intents with data to SL4A or just execute sl4a script in the file using filename.

How can this be done?

EDIT: i don't want to use sl4a source code in my app.

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

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

发布评论

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

评论(2

人海汹涌2025-01-11 11:38:13

SL4A 脚本中有一些可以使用的函数。如果这就是您正在寻找的?

http://www.mithril.com.au/android/doc/AndroidFacade.html

There are functions to work with intends in SL4A scripts. If this is what you are looking for?

http://www.mithril.com.au/android/doc/AndroidFacade.html

戏蝶舞2025-01-11 11:38:13

您必须在设备上安装 sl4A 和相应的解释器。

You have to install sl4A and corresponding interpreter on the device.

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