MFile - a modified version of Sunny's `EFile` extension - Shared folders - storage permissions - Android 11+

I do not understand. The answer is of course YES.

If the answer was 'yes', your example would not request write permission or use App Inventor's File for < API 29 .........?

Of course, it must request WRITE permission on Android < 11. This has nothing to do with my extension. It only ensures that storage permissions are NOT requested on Android 11+.

... on Android < 11 (API < 30).
But why use another / additional component?

It's shown in your image Post#70?

This was just a test app to compare both (MFile extension & File component).
Hence the checkbox.

Ah.
baseball-bat-smiley-emoticon

2 Likes

:laughing:
~

Version 1 and Version 2 Both giving me error . Can you please make Source Code Open. I will Try to Update and try to solve issue.

Question 2 is Does this Extension Works With all android Version 4.0 to android 12. ?

:question:
Post screenshots(s) of the error and also your blocks.

Yes, it should work on all Android versions. But the purpose and benefit of the extension is to avoid unnecessary storage permissions on Android 11+. Otherwise you can also use the File component.

Hello everyone
doesn't seem to work with Android 14. Files from the download folder cannot be read.
Best regards

They can be read, but they must be created by the app itself. Oherwise you must use SAF or MANAGE_EXTERNAL_STORAGE permission.

See also here:

How can I use MFile extension to do the following things?

  1. Upload text file from any memory-area of the phone.
  2. Save that file in ASD so it can be read and manipulated (means adding, editing, splitting etc) according to the need.
  3. Can we do step 2 outside of ASD as well?

(Thankyou @Anke for suggesting me to discuss this new problem in a new post.)

Upload to what?

Upload to read the text file. I am not able to do (read) it.

-- Only if I can read the file, I can do all other text-file manipulations.

-- help me.

Pick and read the text file and/or save it in a new folder /Documents/TextFiles/ using SAF and read/wirte from it / to it using the File component.

1 Like

How can I use SAF, can you explain with blocks?

how can I apply SAF to these blocks?

SAF means Storage Access Framework, am I right?

Can you share the documents that explain SAF? I shall learn few basics and ask doubts after that.

COMMENT UPDATED: SAF: App Inventor implementation of Storage Access Framework - #249 by Anke

Read everything, from beginning to end here:

then you should get a good understanding of how to use the extension.

Also some background: