FilePicker icon indicating copy to clipboard operation
FilePicker copied to clipboard

PDF is not showing In Android Q and Android R

Open jimmytrivedi opened this issue 5 years ago • 5 comments

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 avatar Jul 07 '20 07:07 jimmytrivedi

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

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

chaitendra avatar Jul 08 '20 05:07 chaitendra

PDF work with me ,

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

With Android 10 and higher, added more restriction.

MahmoudMabrok avatar Jul 27 '20 15:07 MahmoudMabrok

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?

pankajjangid avatar Feb 19 '21 05:02 pankajjangid

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

umer-sufyan avatar Mar 11 '21 07:03 umer-sufyan

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

RizwanSoftSol avatar Jan 03 '22 13:01 RizwanSoftSol