FilePicker
FilePicker copied to clipboard
Android 10 issue
Hi please check issue in android 10, image is not picking from picker
Hi Please run semple app first.
Thanks for reply, I have run your sample app, and I'm getting same issue in there too.
i have changed "allowMultiple" to false
https://github.com/ChochaNaresh/FilePicker/assets/56023551/9ad8aeb6-8967-47a9-be00-a384df8849a2
I face the same issuse, did you find any solutions?
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:
Solution:
To handle the case where result.data?.data is null, the following fix was applied:
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