fishwjy / MultiType-FilePicker

This is a light Android file picker library.
Apache License 2.0
1.4k stars 250 forks source link

In android 10 , NormalFilePickActivity not working #63

Open harleendutt5 opened 4 years ago

harleendutt5 commented 4 years ago

I'm using NormalFilePickActivity to pick doc and pdf etc. type file from my device, it is working fine in all versions except android 10.
In android 10, it does not show files , but if i use NormalFilePickActivity to get images, then it is working fine. Thanks in advance.

paul-castro commented 3 years ago

any updates on this issue?

harleendutt5 commented 3 years ago

@paul-castro Yes, in android 10 there is updation in storage access , so i need to add below line in manifest, and it works fine

requestLegacyExternalStorage=true

rvats011990 commented 3 years ago

requestLegacyExternalStorage=true is also not working in my case. The file picker is coming empty. Intent intent4 = new Intent(activity, NormalFilePickActivity.class); intent4.putExtra(Constant.MAX_NUMBER, 1); intent4.putExtra(NormalFilePickActivity.SUFFIX, new String[] {"doc", "docx","txt", "pdf"}); startActivityForResult(intent4, REQUEST_CODE_Word_Doc);

android:requestLegacyExternalStorage="true" added in mainfest.

Could you please help me with the same...