title: Buffered Reader Not Working
body: <p>I am a beginer android developer.I am trying this code. But it always goes into exception. But if i remove BufferedReader then it works fine.</p>
  
  <p>package com.toha.buffercheck;</p>
  
  <pre><code>import java.io.BufferedReader;
  
  import java.io.InputStreamReader;
  
  import java.net.URL;
  
  import java.net.URLConnection;
  
  import android.os.Bundle;  
  
  import android.app.Activity;
  
  import android.view.Menu;
  
  import android.widget.EditText;
  
  import android.widget.TextView;
  
  public class Main extends Activity {
  
  EditText ets , etc;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          ets = (EditText) findViewById(R.id.editText1);
          etc = (EditText) findViewById(R.id.editText2);
          final TextView tv = (TextView) findViewById(R.id.textView1);
          try {
              URL url = null;
  
  
              url = new URL("http://www.google.com");
              URLConnection conn = url.openConnection();
              BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
              tv.setText("Working Till Now");
          }
          catch(Exception e) {
              tv.setText("Stopped Working");
          }
      }
  </code></pre>
  
  <p>And The LogCat keeps Saying "The application may be too much of work on its main thread"</p>
  
  <p>PS: it works fine on the emulator version 2.3.3
  but does not on the emulator version 4.2.2</p>