> How does one go about listing the resources that are available in an > application? > > For example, I would want to find the names of all files under /res/ > xml. > > Reflection on the R class didn't seem to work since the identifiers > are static constants. R.xml.class.getDeclaredFields() doesn't return > any fields. > > The AssetManager didn't seem to work either because these are not raw > assets. > > Does anyone have ideas or examples?
I don't think it is possible at runtime. You could write a code generator to build yourself a table of contents at compile time. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

