coomar2841 / image-chooser-library

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

Android 10 ChooserException #207

Open AsynctaskCoffee opened 4 years ago

AsynctaskCoffee commented 4 years ago

com.kbeanie.imagechooser.exceptions.ChooserException: Error creating directory: /storage/emulated/0/bichooser

AsynctaskCoffee commented 4 years ago

It is not working on Android 10 devices. (I have tested with Honor20, Mi9T and Nova5i)

balavishnu commented 4 years ago

Yes, I am also facing the same issue

balavishnu commented 4 years ago

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link

https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

AsynctaskCoffee commented 4 years ago

@balavishnu Thank you for your valuable help. This is the definitive solution, I've solved the problem in the same way. :)

syedsamarulhuda commented 3 years ago

Need to add a fix for the android 10(target SDK 30) in FileUtils class.

syedsamarulhuda commented 3 years ago

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link

https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

android:requestLegacyExternalStorage="true" is ignored when target sdk is 30

AsynctaskCoffee commented 3 years ago

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

android:requestLegacyExternalStorage="true" is ignored when target sdk is 30

Look at: https://developer.android.com/about/versions/11/privacy/storage. 🐰