Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.res.AssetManager; import java.io.IOException; public class Main { private static AssetManager mAssetManager = null; public static String[] getAssetArray(Context context, String dir) throws IOException { return getAssetManager(context).list(dir); } public static AssetManager getAssetManager(Context context) { if (mAssetManager == null) { mAssetManager = context.getAssets(); } return mAssetManager; } }