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

Failed to pick Gallery Image #8

Closed
Deliforce opened this issue May 2, 2019 · 2 comments · Fixed by #19
Closed

Failed to pick Gallery Image #8

Deliforce opened this issue May 2, 2019 · 2 comments · Fixed by #19

Comments

@Deliforce
Copy link

Library is awesome. But when i tried to pick an image from Downloads folder then it gives me the above error(Title) and the path was content://downloads/public_downloads/1511 Using this path am setting this to imageview like this Imageview.setImageURI

@Dhaval2404
Copy link
Owner

@Deliforce Thank you very much for trying out the lib.

It looks like lib is failed to parse ImageUri(content://downloads/public_downloads/1511) into File object.

Will further investigate the issue and try to fix ASAP.

Thank you.

@Johnsonmaung
Copy link

@Dhaval2404
GalleryProvider.kt (Line:102)
val filePath:String? = FileUtils.getPath(activity, uri)
went wrong.

uri=content://com.android.providers.downloads.documents/document/1310
filePath=null

Dhaval2404 added a commit that referenced this issue Jul 24, 2019
- Sample app made compatible with Android Kitkat 4.4+ (API 19)
-  Fixed Uri to File Conversion issue [#8](#8)
Dhaval2404 added a commit that referenced this issue Jul 24, 2019
- Sample app made compatible with Android Kitkat 4.4+ (API 19)
- Fixed Uri to File Conversion issue #8 - (Special Thanks to squeeish)
- Added Support for Inline Activity Result(Special Thanks to soareseneves)
Fixed App crash issue reported here #6.
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

Successfully merging a pull request may close this issue.

3 participants