First, the internal storage path is/data/Youpackagename/. The paths described below are based on the internal storage path of your application. 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/Youpackagename/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/Youpackagename/Cache file object.
Iii. Custom dir
Getdir (string name, int mode), returns/data/Youpackagename/. If the folder does not exist, create a new folder with the specified name.