jdamcd / android-crop

Android library project for cropping images
4.54k stars 1.08k forks source link

Error reading image: No content provider #260

Closed heliujiang closed 7 years ago

heliujiang commented 7 years ago

I have got picture from camere, And the picture is existed!But I can't ... ![Uploading bug.png…]() E/android-crop: Error reading image: No content provider: /storage/emulated/0/casting/pics/1493869338773cover.jpg java.io.FileNotFoundException: No content provider: /storage/emulated/0/casting/pics/1493869338773cover.jpg at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1103) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:958) at android.content.ContentResolver.openInputStream(ContentResolver.java:683)

heliujiang commented 7 years ago

I solve the problem! Beacuse Uri.parse(Uri.fromFile()) replace Uri.parse(Uri.parse());

awaismazher commented 7 years ago

Yes, that's the correct approach to handle this scenario.

sanjeevda commented 5 years ago

This error is still there in Android 8.0 devices while using camera.