How to access the values from strings.xml dynamically?
<p>What I want to do is to get a specific text from <code>strings.xml</code> dynamically. I think it will involve to access an object variable dynamically.
There will be a function like:</p>

<pre><code>public void getDynamicString(int level) {
  text.setText(R.string.levelText_+level);
}
</code></pre>

<p>And in <code>strings.xml</code> there will be <code>&lt;string name="levelText_5"&gt;Text level 5&lt;/string&gt;</code></p>

<p>I would rather not create a list with all the text resources. Can one do this in Java/Android.</p>
