Hi all,
I need to create a directory within the internal storage (filesystem root).
To solve this I'm using:
But when within the device is present an SD card the "mydir" is created on the SD card root folder instead internal storage root folder.
My questions:
1) How to (always) point to the internal filesystem?
2) How to prevent the data deletion (data within "myfolder") when the user remove the App* ?
* For example: if I put all my data within the path returned by "File.DirDefaultExternal" method all the data will be deleted when user remove the App.
I need to create a directory within the internal storage (filesystem root).
To solve this I'm using:
B4X:
File.MakeDir(File.DirRootExternal, "mydir")
But when within the device is present an SD card the "mydir" is created on the SD card root folder instead internal storage root folder.
My questions:
1) How to (always) point to the internal filesystem?
2) How to prevent the data deletion (data within "myfolder") when the user remove the App* ?
* For example: if I put all my data within the path returned by "File.DirDefaultExternal" method all the data will be deleted when user remove the App.