How to dynamically generate the raw resource identifier in android?
<p>I am working on a mobile library app. I have a 3-4 db files of books stored in raw folder. If I know the name of the book then I first copy this file to /databases/book_name.db and then access them as required. I use </p>

<pre><code>InputStream fileInputStream = getResources().openRawResource(R.raw.book_name);
</code></pre>

<p>for accessing these files.</p>

<p>Now, I want to pass the book name and then dynamically generate the resource identifier R.raw.book_name using the string book_name. Is there a way by which I can generate this identifier? </p>
