Resources are a very important part, typically consisting of external elements such as images, audio, video, strings, themes, layouts, etc. for reference.
All Android applications have a resource directory (res/) and an asset directory (assets/).
Here, the asset stores raw bytes as an asset when reading them, and the usage is actually very small. In fact, there's not much difference between resources and assets. Typically, resources are used more often than set. The reason is that it's easy to refer to through the R class on Android.
Because Asset manages all the data in the directory as a raw file, it's a little uncomfortable because it has to use Asset Manager to read the file as a byte stream to read it.
© 2024 OneMinuteCode. All rights reserved.