Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in Samsung Galaxy A5 #23

Closed
vkfan opened this issue Jul 30, 2019 · 7 comments
Closed

Not working in Samsung Galaxy A5 #23

vkfan opened this issue Jul 30, 2019 · 7 comments

Comments

@vkfan
Copy link

vkfan commented Jul 30, 2019

Image picker is not working in Samsung Galaxy A5. Android 6.0.1.
15644938229312072698965603077218

@Dhaval2404
Copy link
Owner

@vkfan Which version you are currently using?

@vkfan
Copy link
Author

vkfan commented Jul 30, 2019

@vkfan Which version you are currently using?

support 1.3, the issue is when I try to choose images from downloads folder.

@Dhaval2404
Copy link
Owner

@vkfan Can you please try out the latest version.

@Dhaval2404
Copy link
Owner

The issue has been resolved on v1.4

@nipuncs
Copy link

nipuncs commented Apr 14, 2020

The issue is still there on some mobile phones. Only for downloaded images.

  • v1.7.1
  • Nokia 2 (Android 9)

Stack trace
E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Download/image-1.jpg (No such file or directory)

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65560, result=-1, data=Intent { dat=file:///storage/emulated/0/Download/image-1.jpg (has extras) }} to activity

Code

         ImagePicker.with(this)
            .compress(1024)
            .start { resultCode, data ->
                if (resultCode == Activity.RESULT_OK) {
                    try {
                        val file = ImagePicker.getFile(data)
                        if (file != null) {
                            val bitmap = BitmapFactory.decodeFile(file.absolutePath)
                            //Do my work
                        }
                    } catch (e: Exception) {
                       //Show Error
                    }
                } else {
                    //Show Error
                }
            }

@tgbmoseswebb
Copy link

tgbmoseswebb commented May 15, 2020

I am getting the same issue as well on some devices. Only causes issues when picking images from the "Download" folder.

-Samsung A10
-1.7.1

ImagePicker.with(this)
.start { resultCode, data ->
if (resultCode == Activity.RESULT_OK) {
//continued work
} else if (resultCode == ImagePicker.RESULT_ERROR) {
//error
}
}

@ghost ghost mentioned this issue Jul 16, 2021
@tushar-misfit
Copy link

I am also getting the error. Is it solved? I am using version 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants