I develop an app with PCSOFT Windev CASE. There's an instruction "fRepExe" that is equivalent to getFilesDir.
Instead of that, I have replaced it by a call to java instruction getExternalFilesDir, that permit to see the files from a file manager, for an example or via USB cable on the PC.
My question is : is it sure that getFilesDir reside on the same storage device than getExternalFilesDir ?
For an example, if getFilesDir is on the internal storage, is it sure that getExternalFilesDir is on internal too. If getFilesDir is on the external sdcard, is it sure that getExternalFilesDir too ?
There are no guarantees regarding the partitions used for getFilesDir()
and getExternalFilesDir()
. In fact, on Android 1.x/2.x, it was very likely that they would be on different partitions of different media.
Nowadays, it is likely that getFilesDir()
and getExternalFilesDir()
are on the same partition of the same media, but you should not assume that.