title: Open a file with my android App
body: <p>I'm developing an app, and I need the user to be able to open my app for example when an attached file is clicked from the gmail app, or from the downloads folder, or from the "File Explorer".</p>
  
  <p>I've already been googling a lot and even found some questions here in SO, but I can't make this work. </p>
  
  <p>This is how my Manifest.xml file looks like:</p>
  
  <pre><code>&lt;receiver android:name="MySMS2CloudReceiver"&gt; 
  &lt;intent-filter&gt; 
      &lt;action android:name="android.intent.action.ACTION_VIEW" /&gt; 
      &lt;action android:name="android.intent.action.ACTION_EDIT" /&gt; 
      &lt;action android:name="android.intent.action.ACTION_PICK" /&gt; 
      &lt;data android:scheme="http" /&gt; 
      &lt;data android:pathPattern=".*\\.xml" /&gt;    
      &lt;data android:host="*" /&gt; 
      &lt;data android:mimeType="application/rss+xml" /&gt;
      &lt;data android:mimeType="application/atom+xml" /&gt;
      &lt;data android:mimeType="application/xml" /&gt;
      &lt;data android:mimeType="text/xml" /&gt;
  &lt;/intent-filter&gt;    
  &lt;/receiver&gt; 
  </code></pre>
  
  <p>My broadcast receiver:</p>
  
  <pre><code>public class MySMS2CloudReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.d("MySMS2CloudReceiver", "Leaving onReceived...");
      }
  }
  </code></pre>
  
  <p>But right now, when I click an attached file from an email in the pop up with the title "Complete Action Using" my app is not even listed there... </p>
  
  <p>Any idea of what maybe happening?</p>
  
  <p>Thanks!!</p>