title: Is there a standard way to subscribe to a feed using a podcast app?
body: <p>Normally, when a podcast is displayed in the browser it does not offer to open with a podcast manager. I looked in the <a href="http://gitorious.org/swallowcatcher/swallowcatcher/blobs/master/AndroidManifest.xml" rel="nofollow">Swallowcatcher manifest</a>, it will handle feed://url and podcast://url and itpc:// intents to subscribe to podcasts, though it seems to be the <em>only</em> app that lets you do this.</p>
  
  <p>Unfortunately, it appears Swallowcatcher is <a href="https://f-droid.org/forums/topic/swallowcatcher/" rel="nofollow">being discontinued</a>, and has been removed from the app-store. :(</p>
  
  <p>Is this the best way to call a podcast manager? Is "feed" or "podcast" the standard android scheme to call whatever podcast manager the user has installed (doggcatcher/swallowcatcher/Google listen/beyondpod/etc.), or is there a more standard way to call an Android podcast app?</p>
  
  <p><em>Update</em></p>
  
  <p>Looking at <a href="https://github.com/danieloeh/AntennaPod/blob/master/AndroidManifest.xml" rel="nofollow">this</a>, you would think that you could subscribe using:</p>
  
  <pre><code>        Intent bymime = new Intent(Intent.ACTION_VIEW);
          bymime.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          bymime.setData(Uri.parse(url));
          bymime.setType("application/xml");
          _context.startActivity(bymime);
  </code></pre>
  
  <p>...but it doesn't work. Am I missing something?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Stepping into the setData and setType functions (with Android source installed and the sdk/sources folder added) I found that setType sets data null, and setData sets type null.</p>
  
  <p>The solution that works is:</p>
  
  <pre><code>        Intent bymime = new Intent(Intent.ACTION_VIEW);
          bymime.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          bymime.setDataAndType(Uri.parse(url), "application/xml");
          _context.startActivity(bymime);
  </code></pre>
  
  <p>This works in Antennapod... but now the question is, how many other podcast apps will catch this? Is this the standard way to subscribe to a podcast with another app?</p>