Displaying images from an array of drawtables in android
<p>I am new to android and experimenting with it.I have 3 pngs.I am setting the first png using
ImageView.setImageResource()
Now what I have to do is:
When the user touches the png on screen I have to display the remaing pngs as well.
I have tried :</p>

<pre><code>for(int i =0;i&lt;treeArray.length;i++)
{ 
    image1.setImageResource(treeArray[i]);
    print the value i
}
</code></pre>

<p>Now the problem is the the value of i is incrementing perfectly but I cannot see the respective images on the emulator.
I have tried many other ways by searching on google but the problem still persists </p>
