title: URLConnection and setUseCaches(true)
body: <p>I am using the current code to download images in a thread:</p>
  
  <pre><code>Log.d(TAG, "Fetching image: " + BASE_URL + mURL);
  
  URLConnection connection;
  InputStream   input;
  
  connection = (new URL(BASE_URL + mURL)).openConnection();
  connection.setUseCaches(true);
  connection.connect();
  input = connection.getInputStream();
  
  Bitmap image = BitmapFactory.decodeStream(input);
  </code></pre>
  
  <p>The <a href="http://developer.android.com/reference/java/net/URLConnection.html" rel="nofollow">Android documentation</a> is not very clear if the setUseCaches() method will cache the data. From testing it doesn't look like it is, but I wanted to know if I was doing something wrong of if anyone knows if setUseCaches() does anything.</p>