Handling files Write code to create an AssetManager which re…
Handling files Write code to create an AssetManager which reads the list of files from the folder into an array list. Ensure the number of elements in an ArrayList is printed using Log.d() method. Fill in this function. public static List getFilesFromAssets(Context context, String folderName) { // Your code goes here… // Log the number of files found Log.d(TAG, “Number of files in assets/” + folderName + “: ” + fileNames.size()); return fileNames; }
Read Details