Anke
June 1, 2021, 10:17am
5
albarran777:
I have created an application for non-profit, all was going well, until I get Android 11.
When the application download a file (always PDF format), from Dropbox, with Android 9 and earlier there were no problems to read and edit the PDF with Adobe Acrobat Reader, and then attach it to an E-Mail, this file downloaded, stored in the path /storage/emulated/0/GCRESIDENCIAS. From Android 10 started to be stored in /storage/emulated/0/Android/data/appinventor.ai_albarran777.GCRESIDENCIAS/files/GCRESIDENCIAS.
Create a special subfolder in the ASD and download the PDF file there. Then list the PDF / PDFs using the TaifunFile extension, select the relevant one and attach it, e.g. using App Inventor Extensions: Mail | Pura Vida Apps .
You can use my DownloadToASD extension to create the subfolder in ASD and download the PDF there.
Here is an extension to download any file (jpg, png, txt, apk, zip, mp3, ...) to the ASD (app-specific directory) without WRITE_EXTERNAL_STORAGE permission.
Version 1 (Oct 31, 2020):
de.bodymindpower.DownloadToASD.aix (8.4 KB)
Blocks
Version 2 (Nov 1, 2020):
de.bodymindpower.DownloadToASD.aix (9.1 KB)
→ DownloadCompleted event added:
Blocks
Example: download an image and display it
The Image component requires READ permission. (→ Shouldn't be like that.)
Therefore you must ask for READ…