title: how to make intent chooser for xml in android
body: <p>i tried a lot of things, but i cant make it work, i had an application, and i want when there is an XML in the email, or maybe file explorer or more else, i want my app in the popup of the intent chooser, i cant make it work, anyone has a clue?
  btw lets say i make it work, so how i can "handle" when people choose my app in onCreate() to load the information.
  here its part of my app i tried a lot of things</p>
  
  <pre><code>&lt;i&gt;&lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/title_activity_main" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                  &lt;category android:name="android.intent.action.VIEW" /&gt;
                  &lt;action android:name="android.intent.action.EDIT" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                &lt;data android:mimeType="text/*" /&gt;
      &lt;data android:mimeType="application/xml"/&gt;
      &lt;data android:scheme="http" android:host="*"
                      android:pathPattern=".*xml" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt; &lt;/i&gt;
  </code></pre>