Here is a test app that allows you to save, read and share a text file (
.txt,.csvetc.) in
- one of the
Sharedfolders (/Documentsor/Download) or- the
ASDor- the
PrivateDir(internal storage).This is possible on devices running Android 11+ without any storage permissions. On devices with Android ≥ 4.4 (API 19, KitKat) and ≤ 10 (API 29)
WRITEpermission is only required for theSharedfolders. On all other devices (i.e. with Android below KitKat)READandWRITEpermissions are required for all storage locations except for thePrivateDir.
However, since
WRITEpermission automatically and implicitly grantsREADas well, it is sufficient to simply requestWRITEpermission.
For this I modified Sunny's EFile extension a bit. @vknow360
Note: This is not possible using the File component.
So test this test app on different Android versions and give feedback if everything works as described here.
