lundi 18 juillet 2016

Android Intent filter does not show my app

I added this in my manifest to give the user the ability to open a xml file with my app. But when i click on a xml file and say "open with..." my app does not show up in the list! I also removed and installed the app new! The name of the file I test with is Test.xml

 <activity
       android:name=".activities.MainActivity"
       android:label="mainAcitivity"
       android:screenOrientation="portrait">

       <intent-filter>
         <action android:name="android.intent.action.VIEW" />
         <category android:name="android.intent.category.DEFAULT" />
         <data android:scheme="file"
            android:host="*"
            android:pathPattern=".*\.xml"
            android:mimeType="*/*"  />
       </intent-filter>

</activity>

Aucun commentaire:

Enregistrer un commentaire