title: Android: Images are stored at the end of the gallery
body: <p>can somebody help me with this problem?
  I want that images are displayed at the beginning of the gallery.
  What have i to change in my code?</p>
  
  <pre><code> OutputStream fOut = null;
   try {   
     String path = getFilesDir().getPath();
     File file = new File(path, "LT-IMG-"+ts+".jpg"); 
     fOut = new FileOutputStream(file);
     Bitmap bitmap = ((BitmapDrawable)photoView.getDrawable()).getBitmap();
     bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);
     fOut.flush();
     fOut.close(); 
  
     MediaStore.Images.Media.insertImage(getContentResolver(), file.getAbsolutePath(), file.getName(), file.getName());
  
   } catch (IOException ex) {
     ex.printStackTrace();
   }
  </code></pre>