Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an Android Asset?

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?

like image 513
Adam Matan Avatar asked Aug 20 '12 11:08

Adam Matan


People also ask

Where are Android assets?

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/ ).

How do I access Android assets?

Step 3 – Right click app >> New >> Folder >> Assets folder. Right click on the assets folder, select New >> file (myText. txt) and your text.

What are assets list out its importance in Android?

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.

What is asset delivery?

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.


1 Answers

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.

like image 197
पवन Avatar answered Oct 11 '22 20:10

पवन