سؤال

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

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top