One possible way of doing it would be to call AssetManager::open method, which takes a String (relative path in assets folder).
On Sat, Mar 7, 2009 at 2:35 PM, Hayden <[email protected]> wrote: > > Is there a way to access a raw resource file by having its filename > in a String? According Google's documentation, I need to use > > "Resources.openRawResource (R.raw.myDataFile)" > > This requires that I have the file name at compile time, but what if I > have 20 or so files and want to do something to a specific file by > passing its file name at runtime? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

