How to parse .pls file online in android
<p>I am using the following code.</p>

<pre><code>public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    TextView tv=(TextView)findViewById(R.id.textView1);

    try
    {
        URLConnection urlConnection = new URL("http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279309").openConnection();
        int i=urlConnection.getConnectTimeout();
        BufferedReader reader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));

      LinkedList&lt;String&gt; urls = new LinkedList&lt;String&gt;();
        while (true) {
            try {
                String line = reader.readLine();

                if (line == null) {
                    break;
                }
                String url = parseLine(line);
                if (url != null &amp;&amp; !url.equals("")) {
                    urls.add(url);
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    tv.setText("sdsd");
    } 
    catch (MalformedURLException e)
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        tv.setText("eee");
    }
    catch (IOException e)
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        tv.setText("eecce");

    }
}
private String parseLine(String line) 
{
    if (line == null) {
        return null;
    }
    String trimmed = line.trim();
    if (trimmed.indexOf("http") &gt;= 0) {
        return trimmed.substring(trimmed.indexOf("http"));
    }
    return "";
}
</code></pre>

<p>I am getting Error <code>SocketError : permission denied.</code></p>

<p>How to solve this?</p>
