How to request and grant MANAGE_EXTERNAL_STORAGE permission

I now added a method into my tools extension, which can check, if manage external storage opermission already has been granted

HasManage

You can download the tools extension in the Download section here App Inventor Extensions: Tools | Pura Vida Apps

Example use

@Anke might want to add that method into her All Files Permission extension

  @SimpleFunction(description = "Checks, if MANAGE_STORAGE_PERMISSION has been granted. Returns true or false.")
  public boolean HasManageStoragePermission() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
      if (Environment.isExternalStorageManager())
        return true;
      else
        return false;
    } else
      return true;
  }

Taifun

1 Like

Thank you very much Taifun!You are phantastic.

Did I already say?

There is a good wind blowing, if Taifun comes up. :wink:

grafik

grafik