Here is what I would do.
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK)
{
Uri pictureUri = data.getData();
Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), pictureUri);
getContentResolver().delete(Utils.pictureUri, null, null);
}
}
Here what I did was create a Bitmap object to hold the current image. Once you get it in bitmap. You can delete the the file. I have not tried this but I think this is what you are trying to achieve.