This is my code for capturing image:
{
PackageManager pm = getPackageManager();
if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
i.putExtra(MediaStore.EXTRA_OUTPUT, MyFileContentProvider.CONTENT_URI);
startActivityForResult(i, REQUEST_IMAGE_CAPTURE_REDMI);
}
If I use this a duplicate image is storing in DCIM folder.How can I avoid to store image in DCIM folder while using Content Provider?