I’m utterly confused. There’s an ‘assets’ folder in my project, but the AssetManager does not refer to this folder. So I have three questions:
First, where is the folder that AssetManager refers to?
Second, how do I put files into that folder?
Third, how do I access the files that I put into my project’s ‘assets’ folder? (Corollary question: what is the purpose of this folder if it’s not used by AssetManager?)
The docs completely fail to clarify these issues. Very frustrating.
You can drag the resources you want in your project to the /assets folder and access them via code by:
context.getAssets()will simply return anAssetManagerinstance for your application package, from where you can access the files.Hope it helps!