Scenario: My Assets directory - Assets/folder1; Assets/folder2; and so on. With files in folder1 and other folders, such as Asssets/folder1/file1, and others, Asssets/folder/somefile1, and others.
I want the code to access names of only folder names from Assets folder i.e., as a list.
- folder1
- folder2
and so on.
new File("file:///android_asset/").listFiles(); new File("file:///android_asset/").list();
Both of the above statements return null. what would be the path for Assets folder? Thanks!