How to append a letter to a resource file
<p>The method <code>Picture</code> receives a random <code>int i</code>. I  want to add <code>i</code> to the <code>R.drawable.pic+i</code>
in order to randomly choose between several drawables in the resource folder (pic0,pic1,pic2,…) and set them as background at the end of the view <code>k</code>. How can I do it? Here's the code I have now:</p>

<pre><code>public void Picture(int i){
    View k = new View(NewGame.this);
    k.setBackgroundResource(R.drawable.pic); 
    // here it should be k.setBackgroundResource(R.drawable.pic1); for example
    setContentView(k);
}
</code></pre>
