I'm doing my first steps in Android development, and came across the term Asset.
As far as I understand it, an Asset is simply a file that is not being parsed or referensed as a resource.
Is there a more accurate definition of the term? In which scenarios should I use an Asset in my application?
The directories for resources and assets both reside at the top of an Android project tree, at the same level as your source code directory ( src/ ).
Step 3 – Right click app >> New >> Folder >> Assets folder. Right click on the assets folder, select New >> file (myText. txt) and your text.
Assets provide a way to add arbitrary files like text, XML, HTML, fonts, music, and video in the application. If one tries to add these files as “resources“, Android will treat them into its resource system and you will be unable to get the raw data. If one wants to access data untouched, Assets are one way to do it.
Assets Delivery means the Transferors' completion of all Delivery Actions in respect to the transfer and handing over of the Target Assets and related materials in accordance with Article 3.2 of this Agreement.
Assets provide a way to include arbitrary files like text, xml, fonts, music, and video in your application. If you try to include these files as "resources", Android will process them into its resource system and you will not be able to get the raw data. If you want to access data untouched, Assets are one way to do it.
Assets added to your project will show up just like a file system that can read from by your application using AssetManager.
Android has a dedicated folder in its project organization that stores all these files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With