I have a small app that calls the intent of image_capture from android, takes and then deletes it from the gallery.
Well, the picture is not deleted, well, not completely, the best result that I get it's this:
My code is simple, based on what I found around internet:
success = new File(imageUrl).delete();
//deleteFile(imageUrl);
if(success)
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
What can I do to solve this problem?