[Free]DjFilePicker extension (new version)

Update

A Filepicker with UI that uses the SAF for all file operations, no matter if you input a full file path or a content Uri.

Functions:.

  • pick file with multiple filter
  • move file
  • Copy file
  • delete file
  • rename file
  • download file from url
  • list files filtered
  • UI with style options
  • all functions and more also possible without the use of the UI

Note: At the first start of the UI a system folder permission opens. Here you give access to a folder, that will act as the “root-folder” for the UI. This sets the persisted uri and is stored. On API<30 devices you can also set the device’s real Root folder (“0”) as the UI’s “root-folder”. On API>30 devices you cant do this. There you need to give access again via system dialog when you want to leave your “root-folder”.

When done you got a working filepicker UI

Hint for the aia: before downloading a file select(UI) or set a destination folder!

This demo aia also shows how to open 3 different kind of files automatice (audio, images, txt)

DjFilepickerSAF.aia (239.6 KB)

com.django.djfilepicker.aix (134.4 KB)

7 Likes

Those permissions won't be allowed by Google Play...

These permissions are also no longer permitted since May 2025:

See also Some basics on Android storage system.

1 Like

In addition, these permissions must be requested one after another. Furthermore, the READ_MEDIA_... permissions are only available starting with Android 13 (API 33). But I don't know why they would be needed if a file is picked by the user.

1 Like

Update:
I removed ReadMediaAudio, ReadMediaImages and ReadMediaVideo permissions from extension. Updated aia (only asks for READ_EXTERNAL_STORAGE permission for API <31

PS: I read your explanation of the Android file system about 50 times and each time I noticed that smoke was coming out of my ears in the middle part and I had to stop reading..

Which is why I have, in general, switched to using SAF for file picking/access...

Yes, I believe that, and I hope you know who do you have to thank for that?
Google!!!

4 posts were split to a new topic as persoal message: Concerning DjFilePicker extension

Big update in first post.

1 Like