Android Question App/DataFile Association mail file attached

Discussion in 'Android Questions' started by imbault, Jun 12, 2015.

  1. imbault

    imbault Well-Known Member Licensed 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 :
    Code:
    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 ?
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Check the unfiltered logs (in usb debug mode) and look for the intent that is being sent when you choose one of the listed applications.
     
  3. imbault

    imbault Well-Known Member Licensed 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: Jun 12, 2015
  4. imbault

    imbault Well-Known Member Licensed User

Loading...