Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

PDF is not showing In Android Q and Android R #70

Open
jimmytrivedi opened this issue Jul 7, 2020 · 5 comments
Open

PDF is not showing In Android Q and Android R #70

jimmytrivedi opened this issue Jul 7, 2020 · 5 comments

Comments

@jimmytrivedi
Copy link

jimmytrivedi commented Jul 7, 2020

Blank page is coming even though storage permission are granted:

 private void openPDFChooser() {
        Intent intent = new Intent(context, FilePickerActivity.class);
        intent.putExtra(FilePickerActivity.CONFIGS, new Configurations.Builder()
                .setCheckPermission(true)
                .setShowImages(false)
                .enableImageCapture(false)
                .setShowFiles(true)
                .setMaxSelection(1)
                .setSkipZeroSizeFiles(true)
                .build());
        startActivityForResult(intent, 123);
    }


Library version:` implementation 'com.github.jaiselrahman:FilePicker:1.3.2'`
@jimmytrivedi jimmytrivedi changed the title PDF is not showing In Android 10 PDF is not showing In Android Q and Android R Jul 7, 2020
@chaitendra
Copy link

Getting same issue.
Even i have added android:requestLegacyExternalStorage="true" in manifest.

Library version: 'implementation 'com.github.jaiselrahman:FilePicker:1.3.2'

@MahmoudMabrok
Copy link

MahmoudMabrok commented Jul 27, 2020

PDF work with me ,

  • i can pick
  • but i can not get path of file

With Android 10 and higher, added more restriction.

@pankajjangid
Copy link

PDF work with me ,

  • i can pick
  • but i can not get path of file

With Android 10 and higher, added more restriction.

Same here.
Do you find any solution?

@umer-sufyan
Copy link

this is still not working on 10, anyone find out reason?

@RizwanSoftSol
Copy link

RizwanSoftSol commented Jan 3, 2022

.setSuffix("pdf") worked for me in android 10
with implementation 'com.github.jaiselrahman:FilePicker:1.4.0-beta01'

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

No branches or pull requests

5 participants