Android Getting value from an Integer arraylist becomes a number
<p>I am new to Android and from what I read here most of the question goes to Imageview setting image. Here is my problem same as ImageView errors
Ive created a arraylist of Integer because of some function needed Int List rather than String List. Basically like most of function I created it like this one </p>

<pre><code>private ArrayList&lt;Integer&gt; myArrayList = new ArrayList&lt;Integer&gt;();

public void setPicture(Integer datanumber)
{
    if (datanumber&gt;=10)
    {
         myArrayList.add(R.drawable.picture);
    }
    else{
        myArrayList.add(R.drawable.picture_gray);
    }
 ///and so on
}
</code></pre>

<p>Everything works fine until I found out that I cannot get this string ex "R.drawable.picture" using this code</p>

<pre><code> myArrayList.get(0).toString();
</code></pre>

<p>Instead it gives me random number that I cannot understand.
My question is how can I return it to default value(or the one that I add on my list)
Thank you for spending time reading my question</p>
