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).
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.
To be honest I didn't know that there is difference between Download/Downloads
Ok, but there is.
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 ?
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.