Blog purpose for android basic example for android app developer. any query please my contact

Tuesday, 15 July 2025

Assets Folder in Android Studio

 Assets Folder in Android Studio


It can be noticed that unlike Eclipse ADT (App Development Tools), Android Studio doesn’t contain an Assets folder in which we usually use to keep the web files like HTML. 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. But the question arises is why in the asset folder? We can do the same things by creating a Resource Raw Folder. 


How the asset folder is different from the Resource Raw folder? 

The Assets folder is used for storing raw files such as images, fonts, and sounds.


In Android one can store the raw asset file like JSON, Text, mp3, HTML, pdf, etc in two possible locations:


assets

res/raw folder

No comments:

Post a Comment