Help on android.permission.MANAGE_EXTERNAL_STORAGE lazarus / 43-Android ---------------------------------------------------------------------- magleft · 2024-05-09 05:14 Hello. In my app i have set followin permitions Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TFmaster.FmasterJNIPrompt(Sender: TObject);var  manifestPermissions: array of string;begin   if IsRuntimePermissionNeed() then   begin    SetLength(manifestPermissions, 15);      manifestPermissions[0]:= 'android.permission.MANAGE_EXTERNAL_STORAGE';      manifestPermissions[1]:= 'android.permission.PROCESS_OUTGOING_CALLS';      manifestPermissions[2]:= 'android.permission.ACCESS_WIFI_STATE';    manifestPermissions[3]:= 'android.permission.BLUETOOTH';      manifestPermissions[4]:= 'android.permission.BLUETOOTH_ADMIN';      manifestPermissions[5]:= 'android.permission.CALL_PHONE';      manifestPermissions[6]:= 'android.permission.ACCESS_FINE_LOCATION';    manifestPermissions[7]:= 'android.permission.ACCESS_COARSE_LOCATION';      manifestPermissions[8]:= 'android.permission.CAMERA';      manifestPermissions[9]:= 'android.permission.CHANGE_WIFI_STATE';      manifestPermissions[10]:= 'android.permission.RECEIVE_SMS';          //SMS      manifestPermissions[11]:= 'android.permission.SEND_SMS';           //SMS      manifestPermissions[12]:= 'android.permission.READ_PHONE_STATE';     //SMS      manifestPermissions[13]:= 'android.permission.CALL_PHONE';              //      manifestPermissions[14]:= 'android.permission.MODIFY_AUDIO_SETTINGS';  //      Self.RequestRuntimePermission(manifestPermissions, 701);      Self.RequestRuntimePermission(manifestPermissions, 802);      Self.RequestRuntimePermission(manifestPermissions, 1101);      Self.RequestRuntimePermission(manifestPermissions, 1212);      Self.RequestRuntimePermission(manifestPermissions, 2001);   end;   SetLength(manifestPermissions, 0);end;   i use the jselectdirectorydialog comptonent.   In its parameters I define  SelectDirectoryDialog1.SetInitialEnvDirectory(dirDownloads) But I can't access the device folder. Where is it wrong? What should I do in order for my app to access the device folders? Thanks in advance for any help. ---------------------------------------------------------------------- loaded · 2024-05-09 07:06 Hi magleft, a solution to a similar problem; https://forum.lazarus.freepascal.org/index.php/topic,54665.0.html However, I'm not sure if it works yet, it's worth a try. Since I now use Android Studio + LAMW as a partner, I provide such requirements directly through Android Studio. The attached images are from Android's own file selector. ---------------------------------------------------------------------- magleft · 2024-05-11 08:36 Thanks for your answer but don't work for me. I need to copy a database file from some ''public'' folder to internal database folder every time who start the my application. Any idea?