Reputation: 75
How can i get the files of assets sub folder.in my Assets folder i have another sub folder(sample).I want to get all files of sample folder and store it into sdcard.Please can any one help me?
Thanking in Advance.
Upvotes: 1
Views: 400
Reputation: 15973
You can do it this way..
AssetManager assetManager = getAssets();
String[] files = assetManager.list("sample");
for(String filename : files) {
.....
}
Upvotes: 1