title: Dynamically load Image in ImageView in Android
body: <p>I have this database of 100+ images (of country flags) in my drawable folder.</p>
  
  <p>Now I want to display the flag of the country you're currently in, in an ImageView.</p>
  
  <p>I get the country with <code>String country_variable = address.getCountryCode();</code></p>
  
  <p>And I set the image with <code>flag.setImageDrawable(getResources().getDrawable(R.drawable.country_variable));</code></p>
  
  <p>As you all know R.drawable.country_variable wont't work because the compiler can't find a image named country_variable in the drawable folder.</p>
  
  <p>What is the best way to do this?</p>