Java.lang.illegalargumentexception: Unknown Url File At Android.content.contentresolver.delete
Getting the above error builder.setOnCancelListener(new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface
Solution 1:
I tried checking if file exists by new File(mImageCaptureUri.getPath()).exists() it exists
Note that there is no requirement that a Uri
point to a file that you can access.
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)
ContentResolver
is mostly for content://
schemes. For a file://
scheme, you may need to try deleting the file directly yourself.
Post a Comment for "Java.lang.illegalargumentexception: Unknown Url File At Android.content.contentresolver.delete"