save camera clicked image on exernal folder and fetch all saved images in that folder:android
<p>I need to save camera clicked image in external folder rather then in gallery , for doing this i make a external directory and save clicked image in that folder now i need to fetch that images and display all clicked images in gridview , i am able to save image only one , but it replace previos clicked image from the folder , my code are below please refer it , and suggest how to save all camera clicked images in a folder and fetch all that imaged for displaying it in Grid view 
:</p>

<pre><code>try {
                    File root = new File(
                            Environment.getExternalStorageDirectory()
                                    + File.separator + "myFolder" + File.separator);
                    if (!root.exists()) {
                        root.mkdirs();
                    }
                    // root.mkdirs();
                    sdImageMainDirectory = new File(root, "myimage.jpg");
                    outputFileUri = Uri.fromFile(sdImageMainDirectory);
                    startCameraActivity(outputFileUri);
                } catch (Exception e) {

                    Toast.makeText(Photos_Grid_Activity.this,
                            "Error occured. Please try again later.",
                            Toast.LENGTH_SHORT).show();
                    finish();
                }
            }
        }

        protected void startCameraActivity(Uri uri) {

            Intent cameraIntent = new Intent(
                    android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
            startActivityForResult(cameraIntent, 101);

        }
    };

     @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        // super.onActivityResult(requestCode, resultCode, data);

        if (requestCode == 101 &amp;&amp; resultCode == -1) {

            try {
      }
     }
</code></pre>
