This will list all the files in the assets folder:
AssetManager assetManager = getAssets();
String[] files = assetManager.list("");
This to open a certian file:
InputStream input = assetManager.open(assetName);
More Related Contents:
- Play audio file from the assets directory
- Difference between /res and /assets directories
- Loading existing .html file with android WebView
- When should I use the assets as opposed to raw resources in Android?
- How to get the android Path string to a file on Assets folder?
- How to access a file from asset/raw directory
- how to reference an asset in a library project
- How can I edit the text files in assets folder in Android?
- DB File in Assets Folder. Will it be Updated?
- Opening a File from assets folder in android
- How can I change the image of an ImageView? [duplicate]
- When to use handler.post() & when to new Thread()
- android.dexOptions.incremental property is deprecated
- Multiple Android Application Package .apk files from single source code
- Fragment duplication on Fragment Transaction
- POSTing JSON/XML using android-async-http (loopj)
- Android: Get missing translations for strings-resources
- Checkbox auto call onCheckedChange when listview scroll?
- Using the same debug keystore on multiple computers
- Implicit intent to uninstall application?
- FragmentStatePagerAdapter with ChildFragmentManager – FragmentManagerImpl.getFragment results in NullPointerException
- Android CountDownTimer shows 1 for two seconds [duplicate]
- Android Bluetooth Serial/RFCOMM/SPP, How to Change the BAUD RATE?
- Floating Action Button for lower version
- Android — Can’t play any videos (mp4/mov/3gp/etc.)?
- Get Static NFC Tag Id with HCE mode
- How to develop Android app completely using python? [closed]
- How To Start An Activity From Background in Android 10?
- How to use Zxing in portrait mode?
- Splash screen while loading a url in a webview in android app