Android Question App/DataFile Association mail file attached

imbault

Well-Known Member
Licensed User
Longtime User
Hi,
I just want to open an attached XML with my app.
With gmail mail client it's ok:

upload_2015-6-12_10-36-53.png

But with the default Android email client, my Smile App does not appear:

upload_2015-6-12_10-37-58.png



Here is the manifest intent filter :
B4X:
AddActivityText(importxml,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/xml" />
<data android:mimeType="text/xml" />
<data android:mimeType="text/html" />
<data android:mimeType="text/*" />
</intent-filter>)

Any idea ?
 

Attachments

  • upload_2015-6-12_10-36-6.png
    upload_2015-6-12_10-36-6.png
    42.9 KB · Views: 159
  • upload_2015-6-12_10-39-14.png
    upload_2015-6-12_10-39-14.png
    29.4 KB · Views: 168

imbault

Well-Known Member
Licensed User
Longtime User
Thx @Erel , it's :
application/xhtml+xml
without the log, unable to image that mime type...

But how to get the intent file name and path from inside my App ?
 
Last edited:
Upvote 0
Top