Android Question [Solved] Save files with API >29

Cebuvi

Active Member
Licensed User
Hello,

I have developed an app that allows the user to generate and save pdf, jpg and xls files so that he can later access them and use them with other applications.

For that I create a directory in DirExternal and access it through PERMISSION_WRITE_EXTERNAL_STORAGE.

With API 29 I had to add in the manifest
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
, but it is possible that with API> 29 this will not work.

I would like to know what is the best solution to save these files without having problems with future Android updates to be able to work on it.

Thank you very much.
 

Cebuvi

Active Member
Licensed User
Thanks for the reply.

Is it foreseeable that these solutions will not have problems with future versions (30,31) of the API?
 

Cebuvi

Active Member
Licensed User
Thanks Pendrush, very interesting but complex for me.

I will have to study it slowly.
 
Top