title: which method of http is best in android?
body: <p>i have 2 method to download a picture from internet , result is a inputstream .
  but one of this will make the download image fail , i don't know why ,
  here is the code of have a bug :</p>
  
  <pre><code>            HttpGet get = new HttpGet(imageName);
              HttpResponse response = (HttpResponse) httpClient.execute(get);
              HttpEntity entity = response.getEntity();
              BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity); 
              InputStream is = bufHttpEntity.getContent();
  </code></pre>
  
  <p>this is another one that i am using :</p>
  
  <pre><code>        URL imageUrl = new URL(imageName);
          conn = (HttpURLConnection) imageUrl
                  .openConnection();
          conn.setConnectTimeout(30000);
          conn.setReadTimeout(30000);
          conn.setInstanceFollowRedirects(true);
          InputStream is = conn.getInputStream();
  </code></pre>
  
  <p>i am wonder if any one can tell me 
  1. why i use method 1 to get a inputstram , that can not show a picture
  2. i have seen some one say that use a httpclient , don't use connection . i don't know the reason ?? is connection is worse that http client ??</p>
  
  <p>i am use in a multithread ecvironment, method two work normal , but method one can't .</p>