title: Android Reading from an Input stream efficiently
body: <p>I am making an HTTP get request to a website for an android application I am making.</p>
  
  <p>I am using a DefaultHttpClient and using HttpGet to issue the request. I get the entity response and from this obtain an InputStream object for getting the html of the page.</p>
  
  <p>I then cycle through the reply doing as follows:</p>
  
  <pre><code>BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));
  String x = "";
  x = r.readLine();
  String total = "";
  
  while(x!= null){
  total += x;
  x = r.readLine();
  }
  </code></pre>
  
  <p>However this is horrendously slow.</p>
  
  <p>Is this inefficient? I'm not loading a big web page - <strong>www.cokezone.co.uk</strong> so the file size is not big. Is there a better way to do this?</p>
  
  <p>Thanks</p>
  
  <p>Andy</p>