/data/data/<package Name>/files
/DATA/DATA/&NBSP; The path is the system-Internal storage file path, which is:/data/data/ <p ackage name> /, each path is based on your own application <p ackage name> under the internal storage path.
Note: files saved in all internal storage will be deleted when the user uninstalls the app .
A. Files
1.Context.getfilesdir (), the method returns/data/data/ <package name> The file object for the/files.
2.context.openfileinput ()Andcontext.openfileoutput (), you can only read and write files under file and return theFileInputStreamAndFileOutputStreamObject.
3.context.filelist (), returns all the file names under files, and returns thestring[]Object.
4.context.deletefile (String), delete the file with the name specified under files.
Second, Cache
1.Context.getcachedir (), the method returns/data/data/<package name>The file object for the/cache.
Third, custom dir
Getdir (String name, int mode), return/data/data/
<p
ackage name> /Under the folder that specifies the name of the file object, if the folder does not exist, create a new folder with the specified name.
/data/data/<package name>/files file operation in Android