When I use the following code:
it will create a folder "/storage/emulated/0/Android/data/package.name/files/Test"
Everytime I want to create a new sub folder inside this folder, do I need to write?
Can't I just use?
Every time I need to check the permission to use RuntimePermissions (rp) in every Activity when creating new sub folder?
B4X:
DirTest = rp.GetSafeDirDefaultExternal("Test")
it will create a folder "/storage/emulated/0/Android/data/package.name/files/Test"
Everytime I want to create a new sub folder inside this folder, do I need to write?
B4X:
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
rp.GetSafeDirDefaultExternal("Test/NewSubFolder")
Can't I just use?
B4X:
File.MakeDir(DirTest, "NewSubFolder")
Every time I need to check the permission to use RuntimePermissions (rp) in every Activity when creating new sub folder?
B4X:
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)