sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 144 forks source link

[BUG] No data received in onActivityResult #222

Open maxakash opened 4 years ago

maxakash commented 4 years ago

While using the latest version 1.0.0-alpha03, no data is received in onActivityResult. I am using the below code to get data

val path = data?.getParcelableArrayListExtra<Uri>(INTENT_PATH)

But path return empty value.

@sangcomz Please suggest any fix.

betranthanh commented 4 years ago

Let try the older version 0.11.4 :) implementation 'com.sangcomz:FishBun:0.11.4'

meetgandhi24 commented 1 year ago

Just see your context at "FishBun.with(this)" if it is different than change it to "this"

Maybe you have given wrong context You will definitely get data.

ChanHaoHao commented 1 year ago

When I use FishBun on targetSdkVersion 31, I can get something with FishBun.with(this).getFishBunContext().getContext.getDataDir().toString(), but onActivityResult can't get anything, and I have opened the permission to all files, but the program still shows open failed: EPERM (Operation not permitted), is there is something I am missing?