<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Unique Culture</title>
	<atom:link href="http://uniqueculture.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://uniqueculture.net</link>
	<description>applying technology creatively</description>
	<lastBuildDate>Tue, 13 Dec 2011 14:43:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by imon</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-91</link>
		<dc:creator>imon</dc:creator>
		<pubDate>Tue, 13 Dec 2011 14:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-91</guid>
		<description>Getting error in Java

&quot;Exception in thread &quot;main&quot; java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(Unknown Source)
	at IcyStreamMeta.getArtist(IcyStreamMeta.java:36)
	at MetaTest.main(MetaTest.java:21)
&quot;</description>
		<content:encoded><![CDATA[<p>Getting error in Java</p>
<p>&#8220;Exception in thread &#8220;main&#8221; java.lang.StringIndexOutOfBoundsException: String index out of range: -1<br />
	at java.lang.String.substring(Unknown Source)<br />
	at IcyStreamMeta.getArtist(IcyStreamMeta.java:36)<br />
	at MetaTest.main(MetaTest.java:21)<br />
&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by vijae manlapaz</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-90</link>
		<dc:creator>vijae manlapaz</dc:creator>
		<pubDate>Thu, 01 Dec 2011 04:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-90</guid>
		<description>hi, i have use the code in this post i was able to make it work but instead of displaying the song title it displayed the site title

here is the code i used to display the title.
please help! thanks


    private void meta(){
    	URL url;
    	try{
    		url = new URL(&quot;http://rakista.com:8000/listen.mp3&quot;);
    		IcyStreamMeta icy = new IcyStreamMeta(url);
    		TextView title = (TextView) findViewById(R.id.song_title);
    		String T = icy.getTitle();
    		title.setText(T);
    	} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    		    		
    }</description>
		<content:encoded><![CDATA[<p>hi, i have use the code in this post i was able to make it work but instead of displaying the song title it displayed the site title</p>
<p>here is the code i used to display the title.<br />
please help! thanks</p>
<p>    private void meta(){<br />
    	URL url;<br />
    	try{<br />
    		url = new URL(&#8220;http://rakista.com:8000/listen.mp3&#8243;);<br />
    		IcyStreamMeta icy = new IcyStreamMeta(url);<br />
    		TextView title = (TextView) findViewById(R.id.song_title);<br />
    		String T = icy.getTitle();<br />
    		title.setText(T);<br />
    	} catch (IOException e) {<br />
			// TODO Auto-generated catch block<br />
			e.printStackTrace();<br />
		}</p>
<p>    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by Andras Hatvani</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-89</link>
		<dc:creator>Andras Hatvani</dc:creator>
		<pubDate>Fri, 02 Sep 2011 09:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-89</guid>
		<description>It&#039;s working, thanks for sharing it. I&#039;m not sure, whether to use a proxy or recurring polling with an AsyncTask...</description>
		<content:encoded><![CDATA[<p>It&#8217;s working, thanks for sharing it. I&#8217;m not sure, whether to use a proxy or recurring polling with an AsyncTask&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by harikj</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-88</link>
		<dc:creator>harikj</dc:creator>
		<pubDate>Wed, 26 Jan 2011 03:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-88</guid>
		<description>@Parrotlover77

I&#039;m using the NPR method of playing a stream. But am unable to get the cuepoint data that my stream provider is sending with the stream. If I use the method mentioned in the post then I&#039;m getting only the StreamTitle but the metaint is not there. Can someone clarify on this please.</description>
		<content:encoded><![CDATA[<p>@Parrotlover77</p>
<p>I&#8217;m using the NPR method of playing a stream. But am unable to get the cuepoint data that my stream provider is sending with the stream. If I use the method mentioned in the post then I&#8217;m getting only the StreamTitle but the metaint is not there. Can someone clarify on this please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by Parrotlover77</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-87</link>
		<dc:creator>Parrotlover77</dc:creator>
		<pubDate>Mon, 03 Jan 2011 00:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-87</guid>
		<description>Someone came up with a solution to adapt NPR&#039;s StreamProxy to 2.2+ Android phones.  This beats the two-connection workaround stated in this post.  http://stackoverflow.com/questions/4209382/streaming-with-android-mediaplayer-in-sdk-8/4560202#4560202

The trick is to make sure all your headers terminate with carriage return + line feed (\r\n) instead of just line feed (\n).  Once you are going through a proxy, you can simply extract the data as it comes through, using the code in this post as a template for how to request metadata (Icy-Metadata header) and then every &quot;metaint&quot; interval, suck out the data, but do NOT pass that part to the underlying mediaplayer.</description>
		<content:encoded><![CDATA[<p>Someone came up with a solution to adapt NPR&#8217;s StreamProxy to 2.2+ Android phones.  This beats the two-connection workaround stated in this post.  <a href="http://stackoverflow.com/questions/4209382/streaming-with-android-mediaplayer-in-sdk-8/4560202#4560202" rel="nofollow">http://stackoverflow.com/questions/4209382/streaming-with-android-mediaplayer-in-sdk-8/4560202#4560202</a></p>
<p>The trick is to make sure all your headers terminate with carriage return + line feed (\r\n) instead of just line feed (\n).  Once you are going through a proxy, you can simply extract the data as it comes through, using the code in this post as a template for how to request metadata (Icy-Metadata header) and then every &#8220;metaint&#8221; interval, suck out the data, but do NOT pass that part to the underlying mediaplayer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by Parrotlover77</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-86</link>
		<dc:creator>Parrotlover77</dc:creator>
		<pubDate>Thu, 30 Dec 2010 04:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-86</guid>
		<description>Thanks for sharing.

I wrote an app that included SHOUTcast support for Windows Mobile a while back and became an official partner.  As such, I have the actual API docs and your code is spot-on.

The only problem with this workaround, and frankly, I don&#039;t see any way around it, is that to keep your stream title up-to-date, you have to periodically (perhaps once every second) ping the station&#039;s web server.  That&#039;s wasteful for the station and silly since even the first bit of metadata is embedded deep into the stream (whatever the interval is).

This would be less of a big deal if the Froyo update didn&#039;t kill the &quot;NPR method&quot; of creating a proxy stream.  Proxies just don&#039;t seem to work on 2.2 and above.  I haven&#039;t found a workaround that is successful yet, anyway.  If proxies still worked, I could just look into the stream as it went along and updated during the metadata intervals like sane media players do.  I really don&#039;t understand why Google is making something that should be so simple, so incredibly difficult.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing.</p>
<p>I wrote an app that included SHOUTcast support for Windows Mobile a while back and became an official partner.  As such, I have the actual API docs and your code is spot-on.</p>
<p>The only problem with this workaround, and frankly, I don&#8217;t see any way around it, is that to keep your stream title up-to-date, you have to periodically (perhaps once every second) ping the station&#8217;s web server.  That&#8217;s wasteful for the station and silly since even the first bit of metadata is embedded deep into the stream (whatever the interval is).</p>
<p>This would be less of a big deal if the Froyo update didn&#8217;t kill the &#8220;NPR method&#8221; of creating a proxy stream.  Proxies just don&#8217;t seem to work on 2.2 and above.  I haven&#8217;t found a workaround that is successful yet, anyway.  If proxies still worked, I could just look into the stream as it went along and updated during the metadata intervals like sane media players do.  I really don&#8217;t understand why Google is making something that should be so simple, so incredibly difficult.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by emulienfou</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-67</link>
		<dc:creator>emulienfou</dc:creator>
		<pubDate>Mon, 29 Nov 2010 17:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-67</guid>
		<description>Ok it&#039;s work but the display it&#039;s very long normal ?</description>
		<content:encoded><![CDATA[<p>Ok it&#8217;s work but the display it&#8217;s very long normal ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get Stream Metadata with Plain Java for Your Android App by emulienfou</title>
		<link>http://uniqueculture.net/2010/11/stream-metadata-plain-java/comment-page-1/#comment-66</link>
		<dc:creator>emulienfou</dc:creator>
		<pubDate>Mon, 29 Nov 2010 17:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=110#comment-66</guid>
		<description>Hi,
I try your code but nothing display when i try to setText getTitle or getArtist.

I try this code under Froyo.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I try your code but nothing display when i try to setText getTitle or getArtist.</p>
<p>I try this code under Froyo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to serve Excel files on Google App Engine by John Machin</title>
		<link>http://uniqueculture.net/2009/06/how-to-serve-excel-files-on-google-app-engine/comment-page-1/#comment-44</link>
		<dc:creator>John Machin</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://uniqueculture.net/?p=81#comment-44</guid>
		<description>You may like to consider xlwt, a fork of pyExcelerator with bug-fixes and on-going enhancements. See http://pypi.python.org/pypi/xlwt</description>
		<content:encoded><![CDATA[<p>You may like to consider xlwt, a fork of pyExcelerator with bug-fixes and on-going enhancements. See <a href="http://pypi.python.org/pypi/xlwt" rel="nofollow">http://pypi.python.org/pypi/xlwt</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

