0

I'm simply trying to get a list of all the XML files in my res/xml folder. I have tried to use the asset manager .list() function, but that doesn't seem to return anything. I have tried other methods, but none seem to work. They either fail, or return nothing.

This is simply so I can show a ListView which contains the name of each file.

Does anyone have any ideas of what is necessary to do this?

  • Look at this post http://stackoverflow.com/questions/1495585/how-can-i-get-a-directory-listing-of-resources-from-my-android-app – danca Dec 07 '11 at 01:53

1 Answers1

0

Move them to assets/xml, then you can list them with assetManager.list("xml")

chiuki
  • 14,580
  • 4
  • 40
  • 38