rebotea 0 Posted May 16, 2023 Hi my App uses save images and text files how can i change my path so i can continue save and load files or images? Thanks PermissionsService.RequestPermissions(['android.permission.READ_EXTERNAL_STORAGE', 'android.permission.WRITE_EXTERNAL_STORAGE','android.permission.CAMERA'], function CaminhoRaiztelm: string; var MusicPathLength: integer; MusicPath, SDCardPath: string; begin MusicPath:=TPath.GetPublicPath; MusicPathLength:=Length(MusicPath); SDCardPath:=Copy(MusicPath, 0, MusicPathLength-5); Result:=SDCardPath; end; load and save files //PastaGrava:= trim (CaminhoRaiztelm+'Manut'); Share this post Link to post
programmerdelphi2k 237 Posted May 16, 2023 2 hours ago, rebotea said: my path https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Standard_RTL_Path_Functions_across_the_Supported_Target_Platforms tutorials for read https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Mobile_Tutorials:_Mobile_Application_Development_(iOS_and_Android) in Android 11, you can not save your files in any folder, basically in your App folder and public folder! the rules to External_storage changed, read more here https://developer.android.com/about/versions/11/privacy/storage 1 Share this post Link to post