FilePicker icon indicating copy to clipboard operation
FilePicker copied to clipboard

Android 10 issue

Open Iftekhar29 opened this issue 10 months ago • 4 comments

Hi please check issue in android 10, image is not picking from picker

Iftekhar29 avatar Apr 05 '24 06:04 Iftekhar29

Hi Please run semple app first.

ChochaNaresh avatar Apr 08 '24 06:04 ChochaNaresh

Thanks for reply, I have run your sample app, and I'm getting same issue in there too.

image

i have changed "allowMultiple" to false

https://github.com/ChochaNaresh/FilePicker/assets/56023551/9ad8aeb6-8967-47a9-be00-a384df8849a2

Iftekhar29 avatar Apr 08 '24 09:04 Iftekhar29

I face the same issuse, did you find any solutions?

islamYMansour avatar Sep 07 '24 10:09 islamYMansour

Bug Report Package: com.nareshchocha.filepickerlibrary.ui.activitys Class: MediaFilePickerActivity

Description: There is a bug in the following code where a null value is encountered:

image

Solution: To handle the case where result.data?.data is null, the following fix was applied: image

add this to the code else if (result.data?.clipData != null) { val data = result.data?.clipData?.getItemAt(0)?.uri Timber.tag(Const.LogTag.FILE_RESULT).v("File Uri ::: ${data?.toString()}") val filePath = data?.let { FileUtils.getRealPath(this, it) } Timber.tag(Const.LogTag.FILE_RESULT).v("filePath ::: $filePath") setSuccessResult(data, filePath) }

@ChochaNaresh

islamYMansour avatar Sep 07 '24 10:09 islamYMansour