jaiselrahman / FilePicker

FilePicker library for Android
Apache License 2.0
238 stars 70 forks source link

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

Open jimmytrivedi opened 4 years ago

jimmytrivedi commented 4 years ago

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'`
chaitendra commented 4 years ago

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

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

MahmoudMabrok commented 4 years ago

PDF work with me ,

With Android 10 and higher, added more restriction.

pankajjangid commented 3 years ago

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 commented 3 years ago

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

RizwanSoftSol commented 2 years ago

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