I want to have multiple paths be selected dynamicall in my app, and I was wondering if there is any way you can use a String to identify a file path into the res folder. For example, if I am trying to use an InputStream on a specific text file, I would use this code:
InputStream is = this.getResources().openRawResource(R.raw.textfile);
Is there any way to use a String as a replacement for R.raw.textfile?