Usually, when a podcast is displayed in a browser, it does not offer to open using the podcast manager. I looked into the Swallowcatcher manifest , it will process the feed: // url and podcast: // url and itpc: // intend to subscribe to podcasts, although this is the only application that allows you to do this.
Unfortunately, it looks like Swallowcatcher has been terminated and removed from the app store. :(
Is this the best way to call a podcast manager? Is "feed" or "podcast" a standard Android scheme for invoking any podcast manager the user has installed (doggcatcher / swallowcatcher / Google listen / beyondpod / etc.), Or is there a more standard way to invoke an Android podcast application?
Update
Considering this , you might think that you can subscribe with:
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);
... but it does not work. Did I miss something?
Update
Entering the setData and setType functions (with the Android source code installed and the sdk / sources folder), I found that setType sets the data to null, and setData sets to null.
Solution that works:
Intent bymime = new Intent(Intent.ACTION_VIEW); bymime.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); bymime.setDataAndType(Uri.parse(url), "application/xml"); _context.startActivity(bymime);
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 application?
source share