title: Refreshing the thumbnail using MediaScanner
body: <p>When I save an image to new location and then use MediaScanner to refresh the gallery then everything is fine - thumbnails and images are refreshed well.</p>
  
  <p>But when I save an image to EXISTING location and then use MediaScanner - then only 'new' thumbnail isnt refreshed. (even though file is overwritten).</p>
  
  <p>How to solve it?</p>
  
  <p>Here is my code :</p>
  
  <pre><code>File file = new File(SDCARD_PATH, filename);
  
  try {
      FileOutputStream out = new FileOutputStream(file);
      bmp.compress(format, BEST_IMAGE_QUALITY, out);
  }catch (FileNotFoundException e) {
  
  }
  
  //refreshing single file using media scanner, no need to paste
  </code></pre>