SelectFile/Folder in android11+(SAFLight)

This extension is designed to quickly and briefly select a folder or file on android 11+, get read and write permissions in the folder, and return the folder path if possible from the uri link.

all blocks:
for convenience, I attach the full MIMEType table:
Screenshot_1

File Type MIME Type Example Extensions
All files */* All extensions
Text files text/plain .txt
CSV files text/csv .csv
HTML files text/html .html, .htm
PDF files application/pdf .pdf
Images (all) image/* .jpeg, .png, .gif
JPEG images image/jpeg .jpeg, .jpg
PNG images image/png .png
GIF images image/gif .gif
BMP images image/bmp .bmp
Videos (all) video/* .mp4, .avi, .mkv
MP4 videos video/mp4 .mp4
AVI videos video/x-msvideo .avi
MKV videos video/x-matroska .mkv
Audio files (all) audio/* .mp3, .wav, .ogg
MP3 audio audio/mpeg .mp3
WAV audio audio/x-wav .wav
OGG audio audio/ogg .ogg
ZIP archives application/zip .zip
APK files application/vnd.android.package-archive .apk
Microsoft Word application/msword .doc
Microsoft Excel application/vnd.ms-excel .xls
Microsoft PowerPoint application/vnd.ms-powerpoint .ppt
OpenDocument Text application/vnd.oasis.opendocument.text .odt
for example, to see all files, specify the text:*/* in the variable. for zip files, the text will be:application/zip

мне хорошо известно что есть полномасштабное расширение
SAF: App Inventor implementation of Storage Access Framework
оно поддерживает все случаи . однако чтобы просто выбрать файл или папку достаточно воспользоваться этим расширением.

download:
SAFLight.aix (9.7 KB)

4 Likes

great work keep it up