title: HttpURLConnection error
body: <p>I want to get the HTML from a website, for that I'm using <a href="http://pastebin.com/V6JnjZJp" rel="nofollow">this</a> code.
  When I try to add <a href="https://developer.android.com/reference/java/net/HttpURLConnection.html" rel="nofollow">this</a> code from the documentation I get <a href="http://i.imgur.com/l2vg9Li.png" rel="nofollow">this error</a>:</p>
  
  <pre><code>            //Get HTML
              URL url = new URL("http://www.android.com/");
              HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
              try {
                  InputStream in = new BufferedInputStream(urlConnection.getInputStream());
                  readStream(in);
                  finally {
                      urlConnection.disconnect();
                  }
              }
  </code></pre>
  
  <p>What went wrong? Did I forget to import some stuff?</p>