Android Question SOLVED: Best folder to use to read and write files (Android 13)

Paolo Pini

Member
Licensed User
Longtime User
I have an application that works offline in which I need to load with some data from PC before I start using it.

The application uses a setup.txt file and a data.db (sqllite file).

Before the latest API versions I would download via Wetransfer into the /Download folder these 2 files and the application would read and write them directly from there.

With the latest API it is no longer allowed to access the /Download folder (or at least I can't).

Which is the best folder to place my files for this operations and where can I find an example for the latest API?

Could I also copy them to SD and use them from this location?

Thanks in advance

Paolo

Translated with www.DeepL.com/Translator (free version)
 
Last edited:

agraham

Expert
Licensed User
Longtime User
Do you need to put your app in the Play Store? If not you can use this new permission.
 
Upvote 0

Paolo Pini

Member
Licensed User
Longtime User
Do you need to put your app in the Play Store? If not you can use this new permission.
No my app is 'private', thanks for your suggestion I'll try it.
 
Upvote 0

Paolo Pini

Member
Licensed User
Longtime User
No my app is 'private', thanks for your suggestion I'll try it.
Following you link, and more other, I solved!.

I found a module ManageEsternalStorage from a user and add to manifest

B4X:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
 
Upvote 0
Top