Having a file in your assets
folder requires you to use this piece of code in order to get files from the assets
folder:
yourContext.getAssets().open("test.txt");
In this example, getAssets()
returns an AssetManager
instance and then you're free to use whatever method you want from the AssetManager
API.