Skip to content
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

In android 10 , NormalFilePickActivity not working #63

Open
harleendutt5 opened this issue Apr 7, 2020 · 3 comments
Open

In android 10 , NormalFilePickActivity not working #63

harleendutt5 opened this issue Apr 7, 2020 · 3 comments

Comments

@harleendutt5
Copy link

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
Copy link

any updates on this issue?

@harleendutt5
Copy link
Author

harleendutt5 commented Sep 8, 2020

@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
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants