title: R.string; get string from dynamic key name
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3648942/dynamic-resource-loading-android">Dynamic Resource Loading Android</a>  </p>
  </blockquote>
  
  
  
  <p>In Android, I can load a string from the resources with <code>String s = getString(R.string.keyName)</code>. But I have a list of categories in my database, each one which has a name. How can I take that category name and then load the appropriate string resource based on it, so that it will work for localization?</p>
  
  <p>Basically, I need to have the <code>keyName</code> be dynamic; my own String variable. Is this possible? Thanks.</p>