How to convert String to its resource ID (Android Studio)
<p>I have an xml string in my <code>values/strings.xml</code> file</p>

<pre><code>    &lt;string name="pokemon_d"&gt;150&lt;/string&gt;
</code></pre>

<p>And I have the String <code>"150"</code> in my controller <code>MainActivity.java</code>. In my <code>MainActivity</code>, how can I convert that <code>String</code> to the resource ID of the pokemon_d String in the xml file? Is this even possible?</p>