开发者

Associate file extension with air app on Android

开发者 https://www.devze.com 2023-02-01 23:18 出处:网络
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 fi开发者_运维问答le type from either a file manager or

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 fi开发者_运维问答le 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消