将文件扩展名与 Android 上的 Air 应用程序关联

发布于 2024-10-09 18:46:36 字数 738 浏览 0 评论 0原文

我正在尝试将文件扩展名与 Android 上的 Air 应用程序关联。我的目标是能够通过从文件管理器或邮件应用程序单击具有特定文件类型的文件来启动我的应用程序。我找到了一种解决方案,理论上可以在本地工作,但不知何故不适用于空气。

在应用程序的 .xml 文件中,在我写的标签下:

<activity>
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="file" />
        <data android:pathPattern=".*\\.csml" />
        <data android:host="*" />
    </intent-filter>
</activity>

有谁知道如何解决这个问题?

提前致谢 延斯

I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.

In the .xml-file for the app, under the tag I have written:

<activity>
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="file" />
        <data android:pathPattern=".*\\.csml" />
        <data android:host="*" />
    </intent-filter>
</activity>

Does anyone have an idea how this could be solved?

Thanks in advance
Jens

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

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

发布评论

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

评论(1

百合的盛世恋 2024-10-16 18:46:36

Adobe AIR 目前不支持意图,此处是其功能请求

Adobe AIR currently doesn't support intents, here the feature request for it.

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