Closed Pocus76 closed 2 years ago
You are setting the wrong directory name. From android 11 upwards you should use getExternalFilesDir(Environment.DIRECTORY_PICTURES): https://developer.android.com/about/versions/11/privacy/storage
You are setting the wrong directory name. From android 11 upwards you should use getExternalFilesDir(Environment.DIRECTORY_PICTURES): https://developer.android.com/about/versions/11/privacy/storage
Thanks for your answer Unfortunately, after setting this value it keeps crashing with the same error
@Pocus76 version 1.5.0 is available. please check it out!
This issue was fixed in the latest version of the library, 1.5.1, huge thanks @nguyenhoanglam
My Android S10+ running Android 11 is crashing when I try to capture a photo using the camera from the ImagePicker, otherwise it's working fine on a XCover 4S running Android 10.
I'm having the following stacktrace with Android 11 :
When capturing a photo with Android 10, the following Exception appears in the logs ut the photo get captured anyway and appears in the ImagePicker
I'm using the latest version of the ImagePicker (1.4.3) and I'm trying to save the picture with : setDirectoryName(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES+"/camera/")
Am I doing something wrong ?
Any help would be appreciated