Prevent image to save in gallery in android
<p>I am working with some application where I have two buttons, one for to open camera and second for saving image in internal memory of application. I have successfully done my task but I want to prevent image to save in android gallery. I know, gallery is default storage, but I want to prevent it. Please give me suggestions to prevent image to save in android gallery programmetically. </p>

<p>My code to save the image in internal memory is following:  </p>

<p>( Image View is to show image on activity)</p>

<pre><code>    View v=imageView;
    v.setDrawingCacheEnabled(true);
    bm=Bitmap.createBitmap(v.getDrawingCache());
    v.setDrawingCacheEnabled(false);

    String fileName="image.png";
    try {
          FileOutputStream fOut=openFileOutput(fileName, MODE_PRIVATE);
          bm.compress(Bitmap.CompressFormat.PNG, 100, fOut);
        }
    catch (Exception e) {
          e.printStackTrace();
        }
</code></pre>
