My app has data files (.txt or .jpg) which I plan to install/update from my own website.
Where do I install them? I presume it is to File.DirDefaultExternal
Can I (optionally) make them visible when an Android device is "USB connected" to a PC?
-------------------------------------------
For clarity, I have copied below some previous info from Erel.
Files locations - There are several important locations where you can read or write files.
File.DirAssets
The assets folder includes the files that were added with the file manager. These files are read-only. You can not create new files in this folder (which is actually located inside the apk file).
File.DirInternal / File.DirInternalCache
These two folders are stored in the main memory and are private to your application. Other applications cannot access these files.
The cache folder may get deleted by the OS if it needs more space.
File.DirRootExternal
The storage card root folder.
File.DirDefaultExternal
The default folder for your application in the SD card.
The folder is: <storage card>/Android/data/<package>/files/
It will be created if required.
Where do I install them? I presume it is to File.DirDefaultExternal
Can I (optionally) make them visible when an Android device is "USB connected" to a PC?
-------------------------------------------
For clarity, I have copied below some previous info from Erel.
Files locations - There are several important locations where you can read or write files.
File.DirAssets
The assets folder includes the files that were added with the file manager. These files are read-only. You can not create new files in this folder (which is actually located inside the apk file).
File.DirInternal / File.DirInternalCache
These two folders are stored in the main memory and are private to your application. Other applications cannot access these files.
The cache folder may get deleted by the OS if it needs more space.
File.DirRootExternal
The storage card root folder.
File.DirDefaultExternal
The default folder for your application in the SD card.
The folder is: <storage card>/Android/data/<package>/files/
It will be created if required.