title: android.os.networkonmainthreadexception in android, ICS
body: <pre><code>try {
      URL url = null;
      url = new URL(url_string);
      URLConnection conn = url.openConnection();
      BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
      String line="";
      while((line = reader.readLine())!=null){
          Log.d("html",line);
      }
  
  } catch (Exception e) {
      Log.d("Exception Error: ",e.toString());
  }
  </code></pre>
  
  <hr>
  
  <p>I am simply reading website and I am getting errors with android.os.networkonmainthreadexception</p>
  
  <p>my code is very simple.. please take a look and please tell me what I need to do..</p>
  
  <p>Thanks,</p>