LAMW permission.WRITE_EXTERNAL_STORAGE lazarus / 43-Android ---------------------------------------------------------------------- microb · 2022-09-14 17:09 Hello I use lamw4 on linux to create the application. how to modify the WRITE_EXTERNAL_STORAGE permission thank you ---------------------------------------------------------------------- microb · 2022-09-15 14:19 this is my source code,but  permission is alway denied.        procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);     var       manifestPermissions: TDynArrayOfString;     begin       //https://www.captechconsulting.com/blogs/runtime-permissions- best-practices-and-how-to-gracefully-handle-permission-removal       //https://developer.android.com/guide/topics/security/permission s#normal-dangerous       if  IsRuntimePermissionNeed() then   // that is, target API >= 23       begin         if IsRuntimePermissionGranted('android.permission.CAMERA') and            IsRuntimePermissionGranted('android.permission.WRITE_EXTERN AL_STORAGE') then         begin           ShowMessage('Good ... we have runtime permissions !');         end         else         begin           ShowMessage('warning: Requesting Runtime Permission.... please, wait..');           SetLength(manifestPermissions, 2);           manifestPermissions[0]:= 'android.permission.CAMERA';  //from AndroodManifest.xml           manifestPermissions[1]:= 'android.permission.WRITE_EXTERNAL_STORAGE'; //from AndroodManifest.xml           Self.RequestRuntimePermission(manifestPermissions, 1101);           SetLength(manifestPermissions, 0);         end;       end;     end;     procedure TAndroidModule1.AndroidModule1RequestPermissionResult(       Sender: TObject; requestCode: integer; manifestPermission: string;       grantResult: TManifestPermissionResult);     begin        case requestCode of          1101:begin                 if manifestPermission = 'android.permission.CAMERA' then                 begin                     {                     if grantResult = PERMISSION_GRANTED  then                       ShowMessage('Success! ['+manifestPermission+'] Permission grant!!! ' )                     else  //PERMISSION_DENIED                        ShowMessage('Sorry... ['+manifestPermission+'] DENIED... ' );                     }                 end;                 if manifestPermission = 'android.permission.WRITE_EXTERNAL_STORAGE' then                 begin                     if grantResult = PERMISSION_GRANTED  then                        ShowMessage('Success! ['+manifestPermission+'] Permission grant!!! ' )                     else  //PERMISSION_DENIED                        ShowMessage('Sorry... ['+manifestPermission+'] Permission not grant... ' );                 end;          end;       end;     end; ---------------------------------------------------------------------- jmpessoa · 2022-09-15 16:56 Hi, microb! What is your Android system version? You need "Camera", too? Please, put here your "AndroidManifest.xml" file.... ---------------------------------------------------------------------- microb · 2022-09-15 18:53 Thanks a lot My android version is 12 the camera no. ---------------------------------------------------------------------- jmpessoa · 2022-09-15 21:23 From your "AndroidManifest.xml" .... Quote That is, "android.permission.WRITE_EXTERNAL_STORAGE"   is possible only until Android 9! (you can try configure  your project  "targetApi = 28") In which folder/path do you want save or load your files? ---------------------------------------------------------------------- microb · 2022-09-16 06:08 (you can try configure  your project  "targetApi = 28") how ? my file for example : assignfile(fradars,'/storage/emulated/0/Download/radars1'); for information: my application works well on android 4.4 ---------------------------------------------------------------------- microb · 2022-09-22 14:09 hello if I name my file radars1.jpg I can read it. in android settings application permissions I have permission only for files and multimedia content. I don't have the option for all files. how to do.