Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

How to set an AIR app on Android to handle filetype

$
0
0

I've been trying to make my app as default handler of a file type on Android. I have the as3 code to open the file (via InvokeEvent.INVOKE) but I can't seem to be able to register the app as a handler.

 

I added this code in the app XML:

  <android>

    <manifestAdditions>

      <![CDATA[

        <manifest android:installLocation="auto">

          <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" />

          <uses-permission android:name="android.permission.INTERNET"/>

          <uses-permission android:name="android.permission.WAKE_LOCK"/>

          <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>

          <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

        </manifest>

        <intent-filter>

          <action android:name="android.intent.action.VIEW" />

          <category android:name="android.intent.category.DEFAULT" />

          <category android:name="android.intent.category.BROWSABLE" />

          <data

            android:host=""

            android:mimeType="*/*"

            android:pathPattern=".*\\.pgn"

            android:scheme="file"

          ></data>

        </intent-filter>

    ]]>

    </manifestAdditions>

  </android>

 

 

I also tried with

<data android:mimeType="*/*" />

<data android:pathPattern="*.*\\.pgn" />

 

 

What am I doing wrong?


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>