Set imageview photo dynamically : <p>I have +300 png pictures.Their names are like; aaa.png abka.png bxja.png daw.png.</p>

<p>According to my setImage(String pictureName) function i want to set imageview View resource dynamically.</p>

<pre><code>private void setImage(String pictureName){
      myImgView.setBackgroundResource(R.drawable + picturename);
}
</code></pre>

<p>My main idea is like this but as you can see it is imposible.
What did i think to solve this problem is creating switch statemant for all +300 images but it will be really huge effort to implement this. </p>

<p>What am i asking is; is there a any easy way to implement this.</p>
