title: Cannot get Drawable id referenced from another resource file
body: <p>Here is what I have:</p>
  
  <p>In res/drawable-hdpi I have this image:</p>
  
  <pre><code>ar_contact
  </code></pre>
  
  <p>In res/values I have this file:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;string-array name="articles_images_thumbnail_array"&gt;
          &lt;item&gt;@drawable/ar_contact&lt;/item&gt;
      &lt;/string-array&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I want to get the id of my image from the string-array (I will have more than one image)</p>
  
  <p>Now when I tried that in code, I got only the path to the image as a String:</p>
  
  <pre><code>res/drawable-hdpi-v4/ar_contact.png
  </code></pre>
  
  <p>This is my tried code:</p>
  
  <pre><code>id = resources.getStringArray(R.array.articles_images_thumbnail_array)[articleIndex];
  </code></pre>
  
  <p>The above Java code returns the path as String, But I want the id of the ar_contact image so I can use it as such:</p>
  
  <pre><code>imageThumbnail.setImageResource(id);
  </code></pre>
  
  <p>I have tried to use integer-array but I got only a 0 value for all my images.</p>