Download txt file make app crash
<p>I try to download file from the internet with this method:</p>

<pre><code>try { 
    URL url = new URL("http://sites.google.com/site/androidersite/text.txt");
    BufferedReader in =new BufferedReader(new InputStreamReader(url.openStream()));
    String str;
    while ((str = in.readLine()) != null) {  newline character(s)
    }  
    in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
} 
</code></pre>

<p>I also update my Android Manifest and add this lines:</p>

<pre><code>&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
</code></pre>

<p>and the app crash in this line :</p>

<pre><code>BufferedReader in =new BufferedReader(new InputStreamReader(url.openStream()));
</code></pre>

<p>and popup a log file that wrote: <code>Source not found</code></p>
