alhazmy13 / MediaPicker

Media Picker is an Android Libary that lets you to select multiple images or video
alhazmy13.net
Apache License 2.0
268 stars 86 forks source link

SDK 19+ External Storage (SD Card) Not working #72

Closed mikemike396 closed 6 years ago

mikemike396 commented 6 years ago

So I have noticed my app not getting images via the SD card. I tired it on the latest demo app (2.4.1 beta) and it doesnt work either, please see the video. This is a pixel 2 running API 26. It also happens on many other devices. You can see the crash log below for my personal app related to a null URI. Any thoughts? It appears to be an issue with this line

if ("primary".equalsIgnoreCase(type)) {
     return Environment.getExternalStorageDirectory() + "/" + split[1];
}

screen shot 2018-07-24 at 9 34 25 am

pickerexstoragenotworking

screen shot 2018-07-24 at 9 31 36 am

mikemike396 commented 6 years ago

Here is the fix that I have come up with. Fixes 2 issues related to SDK 19+ external storage, and 26+ internal storage attachments https://github.com/alhazmy13/MediaPicker/pull/73

alhazmy13 commented 6 years ago

Fixed with Version 2.4.4 Thanks