title: Why URL.openStream() method produce IOException?
body: <p>hi all I am new in xml parsing when I am fetching xml from url and call url.openStream() method IO exception produce anyone help me..</p>
  
  <pre><code>SAXParserFactory spf =SAXParserFactory.newInstance();
          SAXParser sp = spf.newSAXParser();
          XMLReader xr = sp.getXMLReader();
  
          /** Send URL to parse XML Tags */
          URL sourceUrl = new URL("http://api.androidhive.info/music/music.xml");
          DataHandler mdaDataHandler = new DataHandler();
          xr.setContentHandler(mdaDataHandler);
           InputStream io = sourceUrl.openStream();//exception is here
          xr.parse(new InputSource(io));
          mmusic = mdaDataHandler.getParseData();
  </code></pre>
  
  <p>exception is this</p>
  
  <pre><code>04-15 15:07:06.310: W/System.err(590): java.net.SocketException: Permission denied
  04-15 15:07:06.440: W/System.err(590):  at      
  org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Native Method)
  04-15 15:07:06.440: W/System.err(590):  at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetworkSystem.java:186)
  04-15 15:07:06.450: W/System.err(590):  at org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:265)
  04-15 15:07:06.460: W/System.err(590):  at java.net.Socket.checkClosedAndCreate(Socket.java:873)
  04-15 15:07:06.460: W/System.err(590):  at java.net.Socket.connect(Socket.java:1020)
  04-15 15:07:06.470: W/System.err(590):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.&lt;init&gt;(HttpConnection.java:62)
  04-15 15:07:06.470: W/System.err(590):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88)
  04-15 15:07:06.480: W/System.err(590):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927)
  04-15 15:07:06.490: W/System.err(590):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909)
  04-15 15:07:06.490: W/System.err(590):  at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1152)
  04-15 15:07:06.500: W/System.err(590):  at java.net.URL.openStream(URL.java:653)
  04-15 15:07:06.500: W/System.err(590):  at com.listview.experiment.CustomListViewActivity.parseXML(CustomListViewActivity.java:56)
  04-15 15:07:06.510: W/System.err(590):  at com.listview.experiment.CustomListViewActivity.access$0(CustomListViewActivity.java:43)
  04-15 15:07:06.520: W/System.err(590):  at com.listview.experiment.CustomListViewActivity$1.onClick(CustomListViewActivity.java:34)
  04-15 15:07:06.520: W/System.err(590):  at android.view.View.performClick(View.java:2408)
  04-15 15:07:06.520: W/System.err(590):  at android.view.View$PerformClick.run(View.java:8816)
  04-15 15:07:06.530: W/System.err(590):  at android.os.Handler.handleCallback(Handler.java:587)
  04-15 15:07:06.540: W/System.err(590):  at android.os.Handler.dispatchMessage(Handler.java:92)
  04-15 15:07:06.550: W/System.err(590):  at android.os.Looper.loop(Looper.java:123)
  04-15 15:07:06.550: W/System.err(590):  at android.app.ActivityThread.main(ActivityThread.java:4627)
  04-15 15:07:06.550: W/System.err(590):  at java.lang.reflect.Method.invokeNative(Native Method)
  04-15 15:07:06.560: W/System.err(590):  at java.lang.reflect.Method.invoke(Method.java:521)
  04-15 15:07:06.570: W/System.err(590):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  04-15 15:07:06.570: W/System.err(590):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  04-15 15:07:06.570: W/System.err(590):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>manifest is</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sam.testParsing"
    android:versionCode="1"
    android:versionName="1.0" &gt;
    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
    &lt;uses-sdk android:minSdkVersion="8" /&gt;
     &lt;application
       android:icon="@drawable/ic_launcher"
         android:label="@string/app_name" &gt;
         &lt;activity
            android:label="@string/app_name"
             android:name=".XMLParsingActivity" &gt;
                &lt;intent-filter &gt;
                     &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                      &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                    &lt;/intent-filter&gt;
                     &lt;/activity&gt;
                 &lt;/application&gt;
             &lt;/manifest&gt;
  </code></pre>