<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Shogun &#187; NPR</title>
	<atom:link href="http://www.codeshogun.com/blog/tag/npr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeshogun.com/blog</link>
	<description>Mobile App Dev</description>
	<lastBuildDate>Wed, 02 Jun 2010 01:45:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>NPR Podcasts updated with native Music Player</title>
		<link>http://www.codeshogun.com/blog/2009/05/05/npr-podcasts-updated-with-native-music-player/</link>
		<comments>http://www.codeshogun.com/blog/2009/05/05/npr-podcasts-updated-with-native-music-player/#comments</comments>
		<pubDate>Wed, 06 May 2009 03:11:28 +0000</pubDate>
		<dc:creator>Android Shogun</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Market]]></category>
		<category><![CDATA[Music Player]]></category>
		<category><![CDATA[NPR]]></category>

		<guid isPermaLink="false">http://www.codeshogun.com/blog/?p=127</guid>
		<description><![CDATA[As I slowly figuring out the ins and outs of Android, I&#8217;ll getting more updates out on my apps on the Market. Tonight I updated the NPR Podcasts app w/ built-in Music Player: It&#8217;s actually pretty easy, you pass the Uri of the MP3 file to your intent, and fire it off. The system will [...]]]></description>
			<content:encoded><![CDATA[<p>As I slowly figuring out the ins and outs of Android, I&#8217;ll getting more updates out on my apps on the Market.  Tonight I updated the NPR Podcasts app w/ built-in Music Player:</p>
<p><a href="http://www.codeshogun.com/blog/wp-content/uploads/2009/05/010.png"><img src="http://www.codeshogun.com/blog/wp-content/uploads/2009/05/010.png" alt="010" title="010" width="480" height="320" class="aligncenter size-full wp-image-128" /></a></p>
<p>It&#8217;s actually pretty easy, you pass the Uri of the MP3 file to your intent, and fire it off.  The system will broadcast that intent and a suitable Music Player will be chosen, or the user will be prompted to choose one if there are multiple available players registered to play the &#8220;audio/*&#8221; mine type.</p>
<p>Here&#8217;s the little codes:<br />
<code><br />
Intent intent = new Intent();<br />
                    intent.setAction(android.content.Intent.ACTION_VIEW);<br />
                    intent.setDataAndType(Uri.fromFile(file), "audio/*");<br />
                    context.startActivity(intent);<br />
</code></p>
<p>The app is updated on the Market now.  Download and enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeshogun.com/blog/2009/05/05/npr-podcasts-updated-with-native-music-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

