I am capturing image by using camera in my app.
1) it saves image at sdcard, with the name which i passed in intent.
2) also saving the image at sdcard/dcim folder
I do not want camera to save image at location mentioned in # 2.
i am deleting image from the location in #1. and want to delete image from location in #2 too.
Below is the code snippet for capturing image.
SD_CARD_TEMP_DIR = Environment.getExternalStorageDirectory() + File.separator + "tempImage.jpg";
file =new File(SD_CARD_TEMP_DIR);
Intent takePictureFromCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
takePictureFromCameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
startActivityForResult(takePictureFromCameraIntent, TAKE_PICTURE_WITH_CAMERA);
this Thread helped me to solve this problem.
Now what I am doing, 1) capture image, 2) read last image in Media uri, and delete that.