title: Unable to resolve host "<insert URL here>" No address associated with hostname
body: <p>I tried following this tutorial:
  <a href="http://www.anddev.org/novice-tutorials-f8/getting-data-from-the-web-urlconnection-via-http-t351.html">Getting Data from the Web</a></p>
  
  <p>I tried implementing it on Android 3.0, the latest platform for tablets, however, I get this error: "<strong>Unable to resolve host "www.anddev.org" No address associated with hostname.</strong>"</p>
  
  <p>You can checkout the URL that I used just to prove that the file exists.
  <a href="http://www.anddev.org/images/tut/basic/getdatafromtheweb/loadme.txt">http://www.anddev.org/images/tut/basic/getdatafromtheweb/loadme.txt</a></p>
  
  <p>I created a private class and extended it with asynctask. Here is the code:</p>
  
  <pre><code>    private class Downloader extends AsyncTask&lt;String,Void,String&gt;{
      String myString = null;
      @Override
      protected String doInBackground(String... arg0) {
          try{
              URL myURL = new URL("http://www.anddev.org/images/tut/basic/getdatafromtheweb/loadme.txt");
              URLConnection ucon = myURL.openConnection();
              InputStream is = ucon.getInputStream();
              BufferedInputStream bis = new BufferedInputStream(is);
  
              ByteArrayBuffer baf = new ByteArrayBuffer(50);
              int current = 0;
              while((current=bis.read())!=-1){
                  baf.append((byte)current);
              }
              myString = new String (baf.toByteArray());
          }catch(Exception e){
              myString = e.getMessage();
          }
          return myString;
      }
  @Override
  protected void onPostExecute(String result){
      tv.setText(result);
  }
  }
  </code></pre>
  
  <p>Any help out there would be appreciated.</p>