Skip to content

Issue When Selecting Images From 'Downloads' Folder On Some Devices #86

Closed
@tgbmoseswebb

Description

@tgbmoseswebb

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

  • Library Version - 1.7.1
  • Samsung A10

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)
.start { resultCode, data ->
if (resultCode == Activity.RESULT_OK) {
selectedPhotoUri = data?.data
imageView.setImageURI(selectedPhotoUri)
//OTHER WORK
} else if (resultCode == ImagePicker.RESULT_ERROR) {
//ERROR
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions