coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

FileUriExposedException #197

Open Jaymassena opened 8 years ago

Jaymassena commented 8 years ago

I'm getting a FileUriExposedException every time I try to access the file generated by the camera app since updating to target version 24. If you want this library to support Nougat, you should implement the same fix you did for the multipicker library.

DanielContreras18881 commented 8 years ago

Hi,

I have the same Issue with the version 24, do you need help to improve the library?

coomar2841 commented 8 years ago

Will release this fix in a few days.

DanielContreras18881 commented 8 years ago

Ok, I'm fixing it in my own, when I finished it I'll check if you finished to send my changes to you

vadimbryl commented 8 years ago

I have the same issue. Any news?

https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-fileprovider-on-android-nougat/en

unxavi commented 8 years ago

did any body finish implementing a solution?

unxavi commented 8 years ago

@coomar2841 @DanielContreras18881 any solution about this issue?

liccowee commented 7 years ago

Have this issue too. Anyone know how to solve this for now?

vadimbryl commented 7 years ago

I solved it. Use ImageChooserManagerFix instead of ImageChooserManager.

ImageChooserManagerFix.txt

harirao001 commented 7 years ago

+1 Still having issue. Any one has fixes then please post it. Thanks

vadimbryl commented 7 years ago

I posted it above.

tnyadav commented 7 years ago

@vadimbryl ImageChooserManagerFix working fine for me as I had the same issue. Thanks

gusgol commented 6 years ago

As a workaround you can add this to your application onCreate method:

StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());