Android: How to get image from resource file
<p>Usually, I get the image and binding them to the <code>ImageView</code> something like:</p>

<pre><code>Integer[] icon = {R.drawable.avatar1, R.drawable.avatar2}; 
imageView_1.setImageResource(icon [0]);
imageView_2.setImageResource(icon [1]);
</code></pre>

<p>Anybody know is there is any other way to declare the image name on the resource file <code>strings.xml</code>? And how do we add them to <code>ImageView</code>?</p>
