Getting the above error
builder.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
if (mImageCaptureUri != null)
{
//exception at below line
getContentResolver().delete(mImageCaptureUri, null,null);
mImageCaptureUri = null;
}
}
});
I tried checking if file exists by new File(mImageCaptureUri.getPath()).exists() it exists but still I'm getting the exception as
java.lang.IllegalArgumentException: Unknown URL file:///storage/sdcard0/tmp_avatar_1412858553212.jpg
at android.content.ContentResolver.delete(ContentResolver.java:984)
0 comments:
Post a Comment