Android Question [Solved] Save files with API >29

Cebuvi

Active Member
Licensed User
Longtime 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.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Cebuvi

Active Member
Licensed User
Longtime User
Thanks for the reply.

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

Cebuvi

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

I will have to study it slowly.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…