Jump to content
rebotea

SDK API 32 /versions/12 WRITE_EXTERNAL_STORAGE

Recommended Posts

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
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

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×