You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uri destinationUri = Uri.fromFile(new File(getCacheDir(), queryName(getContentResolver(), sourceUri)));
UCrop.Options options = new UCrop.Options();
options.setCompressionQuality(IMAGE_COMPRESSION);
options.setToolbarColor(ContextCompat.getColor(this, R.color.colorPrimary));
options.setStatusBarColor(ContextCompat.getColor(this, R.color.colorPrimary));
o
```ptions.setActiveWidgetColor(ContextCompat.getColor(this, R.color.colorPrimary));
if (lockAspectRatio)
options.withAspectRatio(ASPECT_RATIO_X, ASPECT_RATIO_Y);
if (setBitmapMaxWidthHeight)
options.withMaxResultSize(bitmapMaxWidth, bitmapMaxHeight);
UCrop.of(sourceUri, destinationUri)
.withOptions(options)
.start(this);
-------------------------------
-- Exception Log
> E/TransformImageView: onFailure: setImageUri
> java.io.FileNotFoundException: open failed: EACCES (Permission denied)
> at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:315)
> at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:220)
> at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1498)
> at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1338)
> at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1286)
> at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:100)
> at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:44)
> at android.os.AsyncTask$3.call(AsyncTask.java:378)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
> at java.lang.Thread.run(Thread.java:919)
The text was updated successfully, but these errors were encountered:
Using latest version 2.2.4
Getting imageUri via FileProvider
The text was updated successfully, but these errors were encountered: