title: android change background image programmatically from string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4313007/setting-android-images-from-string-value">Setting Android images from string value</a>  </p>
  </blockquote>
  
  
  
  <p>I need to change background image programmatically on Android with source string I have. 
  For example I have an array of strings gotten from XML file "source1", "source2" etc., so how can I set them to background as images? 
  I saw examples like  <code>mTextView.setBackgroundResource(R.drawable.myResouce);</code>, but I don't understand how to set mySource from a String. May be it is possible through drawable object?</p>