In Android, file operations under/data/<package name>/files, androidpackage
/Data/<package name>/files
/Data/This path is the path of the system's internal storage file, that is,/data/<PAckage name>/, Each path is based on your own application<PAckage name>.
Note: All files stored in the internal storage will be deleted when the user uninstalls the application.
1. files
1. Context. getFilesDir (), this method returns/data/<PAckage name>/Files File object.
2. Context. openFileInput () and Context. openFileOutput () can only read and write files. The returned objects are FileInputStream and FileOutputStream.
3. Context. fileList (): returns all file names under files, and returns the String [] object.
4. Context. deleteFile (String): delete the file with the specified name under files.
Ii. cache
1. Context. getCacheDir (), this method returns/data/<PAckage name>/Cache File object.
Iii. custom dir
GetDir (String name, int mode), returns/data/
<P Ackage name>/. If the folder does not exist, create a new folder with the specified name.