Skip to main content
January 3, 2011
Question

Associate file extension with air app on Android

  • January 3, 2011
  • 3 replies
  • 3002 views

Hi,

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 <android> 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

This topic has been closed for replies.

3 replies

Inspiring
March 9, 2012

Thanks, it works with adaptation.

Inspiring
February 27, 2012

a solution for this probleme is to use native extension I think, but I have not found this native extension yet.

Participating Frequently
March 6, 2012
Participating Frequently
January 5, 2011

If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?

See also:

http://www.mail-archive.com/android-developers@googlegroups.com/msg47862.html

http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension

July 29, 2011

Hi,

any got solution for this problem,

when i try to add that entry in application xml ,i am not able to generate apk file.

any solution?

Gs.