How to access values from "strings.xml" dynamically in android?
<p>App version 2.3.3</p>

<p>Here is what i am looking for...</p>

<p>I have few strings in "values/strings.xml". I wish to retrieve the values depending on the string's "name" attribute and use it my application. The input to which string in the xml should be used comes dynamically. Here is an example...</p>

<p>My input from other file :: "A" => This value changes. It can be any value in A,B,C,D.</p>

<p>I have different strings in strings.xml, like...</p>

<pre><code>    &lt;string name="A"&gt;AforApple&lt;/string&gt;
&lt;string name="B"&gt;BforBall&lt;/string&gt;
&lt;string name="C"&gt;CforCat&lt;/string&gt;
&lt;string name="D"&gt;DforDog&lt;/string&gt;
</code></pre>

<p>Now, how do i programmatically get the value(AforApple) of the String with name="A".</p>

<p>Thanks...</p>
