-
Notifications
You must be signed in to change notification settings - Fork 344
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
Issue When Selecting Images From 'Downloads' Folder On Some Devices #86
Comments
had the same |
@tgbmoseswebb @corrado4eyes Did you guys added android:requestLegacyExternalStorage="true" in manifest file? |
Yes I have added in manifest. |
Yes...
|
Tried on Google Pixel 3XL and the problem is not there |
Issue remains on Google Pixel 2 API 28 . Did you try on API 28 <? |
The huawei I mentioned use API 24. Edit: Just tried with API 27 and 26 on Google pixel 2 (emulator) and it works... At this point, I don't think the problem is API specific |
Having similar issue in lib v2.1
|
The issue is still there on some mobile phones. Only for downloaded images.
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
}
}
The text was updated successfully, but these errors were encountered: