title: Android Dynamic Image
body: <p>I have 10 image views:</p>
  
  <pre><code>ImageView Card0=(ImageView)findViewById(R.id.Card0);
  .....
  ImageView Card9=(ImageView)findViewById(R.id.Card9);
  </code></pre>
  
  <p>all images are in my drawable folder but I am selecting the card from remote database.
  a php script generates 10 random cards.</p>
  
  <p>I have the array containing the file name:</p>
  
  <pre><code>Cards = deal.split(":");
  </code></pre>
  
  <p>Now I want to set the image:</p>
  
  <pre><code>Card0.setImageResource(R.drawable.Cards[0]);
  </code></pre>
  
  <p>I've tried and searched a lot but could not set any variable <code>setImageResource(R.drawable.*Variable*);</code></p>
  
  <p>someone plz help.</p>