Pick Pdf file on Android12

Actually I manged to solve the problem on Android API +29 by Copying the URI to ASD then upload it from there Android API 28- had no issues with File picker Extension

Downloaded PDF using Name+System clock (Timer)

So again, where does the PDF file come from?

Show the relevant blocks.

Adding a timeStamp to the file name is only helpful if you store the PDF file in one of the Shared folders on Android 11+ and be sure that there are no conlicts with existing files created beforehand (eg with Companion).



That done it in Android API 29,30,31 for Android 28- I used File picker

Ok, so from which path are you picking?
So not from /Download because that wouldn't work on Android 11+.

Downloads --It works on Android 29+

It should work on all Android versions.

1 Like

To be honest I didn't know that there is difference between Download/Downloads

Ok, but there is.

1 Like

Thank you for your help, I really appreciate that … For now, I used 2 Extensions on my project one File Picker for Android 28-
and SAF for Android 29+ it seems that it works.

SAF is only needed on Android 11+ (API 30+).

... because AI2 decided to declare requestLegacyExternalStorage=true in the Manifest, so it continues to work on Android 10 (API 29).

See also here:

@Anke Why android.permission.MANAGE_EXTERNAL_FILES is asked in File tools Extension is it dangerous ?

:question:

No idea. This permission does not exist.
@vknow360

Btw, the question should be:
Why android.permission.MANAGE_EXTERNAL_FILES is declared in the Manifest with the FileTools extension?

No, since it doesn't exist, ignore it.