What is the difference between including the assets folder, the Res folder, and the Res/raw folder in the Android app to hold the resources for our application?
Assets folder : for storing static files that need to be packaged into the installer, the resources stored here will be stored intact in the installation package and will not be compiled into binary. Unlike res, assets supports subdirectories of any depth (that is, subfolders can be created under that folder ). These files do not generate any resource tokens , and must use the relative pathname of the/assets to start (but not contain) the Assetmanager class access, which is read through the file stream.
Res: The resources used to store the application (superscript, interface layout, etc.) will generate tokens in the R.java file, where the resources will be judged if they are used at the time of packaging. Unused resources will not be packaged in the installation package . There are some fixed subfolders under this folder, but you cannot create subfolders at any time.
Res/raw: The original resource file is stored in the folder, the file will be saved to the device intact , will not be compiled into binary form , can be referenced by r.raw.xxx, using GetResource (). Openrawresources (r.raw.xxx)for reading and writing. Subfolders cannot be created under this folder.
The difference between several resources in Android