title: Showing an image without specifying src in xml
body: <p>I want to show an image, depending on the value of the <code>int imgch</code></p>
  
  <p>This is in my onCreate:</p>
  
  <pre><code>    ImageView image = (ImageView)findViewById(R.id.gimage);
      Resources res = getResources();
      Drawable gameImage = res.getDrawable(images[imgch]); 
  </code></pre>
  
  <p>And this in my XML:</p>
  
  <pre><code>     &lt;ImageView
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:id="@+id/gimage" /&gt;
  </code></pre>
  
  <p>How do I get it to show the correct image in the activity?</p>