Description
I used FishBun 0.11.4 before, using GlidAdapter() as the imageAdapter, but some of the image doesn't show, so I change to FishBun 1.1.1 and used CoilAdapter(), now It displays all the photo, but when I select the photo, it shows open failed: EPERM (Operation not permitted).
How to repeat issue and example
- use
implementation 'io.github.sangcomz:fishbun:1.1.1', implementation 'io.coil-kt:coil:0.11.0' in build.gradle
- Setup FishBun as the tutorial
FishBun.with(this)
.setImageAdapter(new CoilAdapter())
.setMaxCount(50)
.setMinCount(1)
.setPickerSpanCount(5)
.setActionBarColor(Color.parseColor(getString(R.color.shade_1)), Color.parseColor(getString(R.color.shade_2)))
.setIsUseDetailView(false)
.exceptMimeType(mimeTypes)
.isStartInAllView(true)
.setAllViewTitle(getString(R.string.select_photos))
.setSelectCircleStrokeColor(Color.parseColor(getString(R.color.shade_1)))
.setCamera(true)
.startAlbumWithOnActivityResult(PHOTO_FILE_INTENT);
- Get the Image in onActivityResult
if (requestCode==PHOTO_FILE_INTENT $$ requestCode==RESULT_OK) {
List<Uri> uris=data.getParcelableArrayListExtra(FishBun.INTENT);
}
This is the error Log:
FATAL EXCEPTION: main
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=253052549, result=-1, data=Intent { }} to
activity {ntu.airobo.reminiscence/ntu.airobo.reminiscence.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke
interface method 'int java.util.List.size()' on a null object reference
/storage/emulated/0/Logs/2023-06-20_18:07:14.txt: open failed: EPERM (Operation not permitted)
Additional Information
- Image Picker version: 1.1.1
- Platform: Android
- Development Operating System: Windows
- Dev tools: Android Studio 2022.2.1 Patch 1
- targetSdkVersion 31
Description
I used
FishBun 0.11.4before, using GlidAdapter() as the imageAdapter, but some of the image doesn't show, so I change toFishBun 1.1.1and used CoilAdapter(), now It displays all the photo, but when I select the photo, it showsopen failed: EPERM (Operation not permitted).How to repeat issue and example
implementation 'io.github.sangcomz:fishbun:1.1.1',implementation 'io.coil-kt:coil:0.11.0'in build.gradleThis is the error Log:
Additional Information