title: Handling MIME type that is the result of a browser POST in Android
body: <p>I have an Activity that is successfully invoked for the MIME type in which I'm interested.  The content being sent from the server is an XML document created as the result of a POST.  I've tried to process the result two different ways and I'm not having luck with either:</p>
  
  <ol>
  <li><strong>android:mimeType="application/customapp"</strong>  Doing this, my activity runs, but the URI I get from Intent.getData() is the URL used for the post.  A call to getContentResolver().openInputStream() results in <em>java.io.FileNotFoundException: No content provider: http://....</em>  Obviously, just hitting that URL won't work as I don't have the posted data.</li>
  <li><strong>android:pathPattern=".*\custom.app"</strong> The last segment of the URL is custom.app, so I tried using that with a path pattern.  This way, the browser attempts to download the document and one of two things happens: The stock browser attempts to download "untitled" and fails.  Opera downloads the document, naming it as hoped, and will offer to open the file, which works, but Opera Mini does nothing but download the file.</li>
  </ol>
  
  <p>Here is the relevant section of my manifest with the scheme in:</p>
  
  <pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;activity android:name=".CustomappActivity" android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;data android:mimeType="application/customapp" /&gt;
              &lt;data android:scheme="http" /&gt;
              &lt;data android:scheme="https" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>I'd like to use the first option, but could put up with the second even if it required Opera, but only if it worked consistently across both versions of Opera.  I just can't see a way to get an input stream for the result being sent from the server.</p>